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;