diff --git a/phpstan.neon b/phpstan.neon index a08155c1a..d579a1864 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -49,6 +49,7 @@ parameters: - '/Parameter \#1 \$maxPerPage of method Pagerfanta\\Pagerfanta::setMaxPerPage\(\) expects int<1, max>, int given\./' - '/Parameter \#1 \$array[0-9]? of function array_multisort expects array, array\|int given\./' - '/Parameter \#2 \$class of static method Webmozart\\Assert\\Assert::isInstanceOf\(\) expects class-string, string given./' + - '/Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class-string|object, object|string given./' - '/Return typehint of method Sylius\\Bundle\\ResourceBundle\\Routing\\CrudRoutesAttributesLoader::getClassAttributes\(\) has invalid type ReflectionAttribute./' - '/Return typehint of method Sylius\\Bundle\\ResourceBundle\\Routing\\RoutesAttributesLoader::getClassAttributes\(\) has invalid type ReflectionAttribute./' - '/Unable to resolve the template type ExpectedType in call to method static method Webmozart\\Assert\\Assert::isInstanceOf\(\)/' diff --git a/src/Component/Reflection/ClassReflection.php b/src/Component/Reflection/ClassReflection.php index e79ae6d02..c2ee06e5a 100644 --- a/src/Component/Reflection/ClassReflection.php +++ b/src/Component/Reflection/ClassReflection.php @@ -20,7 +20,7 @@ final class ClassReflection public static function getResourcesByPaths(array $paths): iterable { foreach ($paths as $resourceDirectory) { - $resources = ClassReflection::getResourcesByPath($resourceDirectory); + $resources = self::getResourcesByPath($resourceDirectory); foreach ($resources as $className) { yield $className;