Skip to content

Commit

Permalink
Fix Psalm and PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Dec 16, 2021
1 parent f8b5a80 commit b8ea7f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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./'
- '/Return typehint of method Sylius\\Bundle\\ResourceBundle\\Routing\\AttributesLoader::getClassAttributes\(\) has invalid type ReflectionAttribute./'
- '/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\(\)/'
- '/is deprecated since Sylius 1\.8/'
3 changes: 2 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<file name="src/Bundle/DependencyInjection/Driver/Doctrine/DoctrinePHPCRDriver.php" />
<file name="src/Bundle/EventListener/ODM*.php" />
<file name="src/Bundle/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php" />
<file name="src/Bundle/Routing/AttributesLoader.php" />
<file name="src/Bundle/Routing/RoutesAttributesLoader.php" />
<file name="src/Bundle/Routing/CrudRoutesAttributesLoader.php" />
</ignoreFiles>
</projectFiles>

Expand Down

0 comments on commit b8ea7f6

Please sign in to comment.