Skip to content

Commit

Permalink
Require safe ^1.2
Browse files Browse the repository at this point in the history
1.0 and 1.1 use `resource` as a literal type hint, which is interpreted as a class name, which results in error reports

(I'm not sure why anybody would be using safe v1.0 or v1.1, but our test suite checks with `--prefer-lowest`, and I'm not sure why that didn't catch this issue earlier)
  • Loading branch information
shish committed Feb 11, 2025
1 parent 05fa55d commit 92e26fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "^8.1",
"phpstan/phpstan": "^2.0",
"thecodingmachine/safe": "^1.0 || ^2.0 || ^3.0",
"thecodingmachine/safe": "^1.2 || ^2.0 || ^3.0",
"nikic/php-parser": "^5"
},
"require-dev": {
Expand Down

0 comments on commit 92e26fe

Please sign in to comment.