From dfdf93b40cc3b53bfe4cd6fa25108d300ea541a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Wed, 19 Jun 2024 21:23:30 +0200 Subject: [PATCH] Changes necessary for compatibility with ORM 3 --- src/Persistence/Mapping/ClassMetadata.php | 2 +- src/Persistence/Mapping/Driver/FileDriver.php | 4 ++-- src/Persistence/Proxy.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Persistence/Mapping/ClassMetadata.php b/src/Persistence/Mapping/ClassMetadata.php index 38c628e6..1cc434ed 100644 --- a/src/Persistence/Mapping/ClassMetadata.php +++ b/src/Persistence/Mapping/ClassMetadata.php @@ -35,7 +35,7 @@ public function getIdentifier(): array; * * @return ReflectionClass */ - public function getReflectionClass(): ReflectionClass; + public function getReflectionClass(); /** Checks if the given field name is a mapped identifier for this class. */ public function isIdentifier(string $fieldName): bool; diff --git a/src/Persistence/Mapping/Driver/FileDriver.php b/src/Persistence/Mapping/Driver/FileDriver.php index 1f035363..2264111d 100644 --- a/src/Persistence/Mapping/Driver/FileDriver.php +++ b/src/Persistence/Mapping/Driver/FileDriver.php @@ -71,7 +71,7 @@ public function getGlobalBasename(): string * * @throws MappingException */ - public function getElement(string $className): ClassMetadata + public function getElement(string $className) { if ($this->classCache === null) { $this->initialize(); @@ -139,7 +139,7 @@ public function getAllClassNames(): array * @return ClassMetadata[] * @psalm-return array> */ - abstract protected function loadMappingFile(string $file): array; + abstract protected function loadMappingFile(string $file); /** * Initializes the class cache from all the global files. diff --git a/src/Persistence/Proxy.php b/src/Persistence/Proxy.php index 7394111f..d597e103 100644 --- a/src/Persistence/Proxy.php +++ b/src/Persistence/Proxy.php @@ -26,7 +26,7 @@ interface Proxy * * Acts as a no-op if already initialized. */ - public function __load(): void; + public function __load(); /** Returns whether this proxy is initialized or not. */ public function __isInitialized(): bool;