Skip to content

Commit

Permalink
Fix PHPStan error
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Jan 10, 2022
1 parent 1733d9e commit 04f5653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ parameters:
- '/Parameter \#1 \$maxPerPage of method Pagerfanta\\Pagerfanta<mixed>::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<object>, string given./'
- '/Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class-string<object>|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\(\)/'
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Reflection/ClassReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 04f5653

Please sign in to comment.