Skip to content

Commit 826a9ee

Browse files
authored
Fix composer lint: phpstan No error to ignore is reported on line 17. (#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
1 parent 5c5b486 commit 826a9ee

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"phpcr/phpcr-shell": "^1.5",
5959
"phpspec/prophecy-phpunit": "^2.1",
6060
"phpstan/extension-installer": "^1.3",
61-
"phpstan/phpstan": "^1.10",
61+
"phpstan/phpstan": "^1.12",
6262
"phpstan/phpstan-doctrine": "^1.3",
6363
"phpstan/phpstan-phpunit": "^1.3",
6464
"phpstan/phpstan-symfony": "^1.3",

config/router.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

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

0 commit comments

Comments
 (0)