Skip to content

Commit 3f70576

Browse files
author
Phil Bates
committed
PHPStan: Ignore "Dynamic call to static method" errors
The following route: Route::get('/', function(\Illuminate\Contracts\Filesystem\Filesystem $factory) { return $factory->download('foo.csv'); }); currently results in the following false-positive error: ------ ------------------------------------------------------------------------------------ Line routes/web.php ------ ------------------------------------------------------------------------------------ 22 Dynamic call to static method Illuminate\Filesystem\FilesystemAdapter::download(). ------ ------------------------------------------------------------------------------------ See phpstan/phpstan-strict-rules#140
1 parent 848d56d commit 3f70576

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

phpstan.neon.dist

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ parameters:
1616
level: 9
1717
excludePaths:
1818
- bootstrap/cache/
19+
ignoreErrors:
20+
# TODO remove when https://github.com/phpstan/phpstan-strict-rules/issues/140 is resolved
21+
- '#^Dynamic call to static method#'

0 commit comments

Comments
 (0)