Closed daCyberpunk closed 10 months ago
Because Repositories are not extended interfaces, but an implementation of an interface.
Shouldn't it be if (empty(($interfaces = class_implements($repositoryClassName))) || !in_array( RepositoryInterface::class, $interfaces, true )) { ... }
if (empty(($interfaces = class_implements($repositoryClassName))) || !in_array( RepositoryInterface::class, $interfaces, true )) { ... }
instead?
https://github.com/sascha-egerer/phpstan-typo3/blob/b3f4ca1666d498758988acc5f74fd233b9acdb33/src/Helpers/Typo3ClassNamingUtilityTrait.php#L23
Ok, das war für mich die einzige logische Schlussfolgerung. Aber dass eine Extension auch installiert sein sollte, bevor ich phpstan anwerfe, der Gedanke kam mir später.
Because Repositories are not extended interfaces, but an implementation of an interface.
Shouldn't it be
if (empty(($interfaces = class_implements($repositoryClassName))) || !in_array( RepositoryInterface::class, $interfaces, true )) { ... }
instead?
https://github.com/sascha-egerer/phpstan-typo3/blob/b3f4ca1666d498758988acc5f74fd233b9acdb33/src/Helpers/Typo3ClassNamingUtilityTrait.php#L23