Skip to content

Commit

Permalink
Fix composer lint: phpstan No error to ignore is reported on line 1…
Browse files Browse the repository at this point in the history
…7. (#258)

* Bump phpstan/phpstan to ^1.12

This includes a fix to issue phpstan/phpstan#7685 "Cast to (bool) on string|false !== false should end in non-empty-string"

* Remove @phpstan-ignore-next-line from config/router.php

Since phpstan v1.12.1 the related issue is fixed.
phpstan/phpstan#7685
phpstan/phpstan-src#3380
  • Loading branch information
RafaelKr authored Nov 19, 2024
1 parent 5c5b486 commit 826a9ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"phpcr/phpcr-shell": "^1.5",
"phpspec/prophecy-phpunit": "^2.1",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-doctrine": "^1.3",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
Expand Down
1 change: 0 additions & 1 deletion config/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

// Workaround https://bugs.php.net/64566
$autoPrependFile = \ini_get('auto_prepend_file');
// @phpstan-ignore-next-line https://github.com/phpstan/phpstan/issues/7685
if (false !== (bool) $autoPrependFile && !\in_array(\realpath($autoPrependFile), \get_included_files(), true)) {
require \ini_get('auto_prepend_file');
}
Expand Down

0 comments on commit 826a9ee

Please sign in to comment.