Skip to content

Commit

Permalink
Prepare for compatibility to phpstan 2
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseException committed Oct 7, 2024
1 parent d9e767d commit a18b00d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"psalm/plugin-phpunit": "^0.19.0",
"vimeo/psalm": "^5.23",
"doctrine/coding-standard": "^12.0",
"phpstan/phpstan-strict-rules": "^1.5"
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-deprecation-rules": "^1.2"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ parameters:
- "%currentWorkingDirectory%/src/"
- "%currentWorkingDirectory%/tests/"


ignoreErrors:
-
message: '#Cannot cast mixed to string\.#'
paths:
- src/Collator/ConfigurableCollator.php
- tests/ComparatorFactory/CallableAccessTest.php
- tests/Comparator/CallableAccessTest.php

includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- phar://phpstan.phar/conf/bleedingEdge.neon

0 comments on commit a18b00d

Please sign in to comment.