phpstan: use PHP 8.0 as primary version

I'm using 8.0 for local development now, so having the phpstan configs targeted at 7.4 by default makes things inconvenient.
This commit is contained in:
Dylan K. Taylor
2021-07-26 14:34:47 +01:00
parent 3bbd088a09
commit 01fe497c49
15 changed files with 213 additions and 271 deletions

View File

@ -4,6 +4,7 @@ includes:
- tests/phpstan/configs/gc-hacks.neon
- tests/phpstan/configs/l7-baseline.neon
- tests/phpstan/configs/l8-baseline.neon
- tests/phpstan/configs/php74-compat.neon
- tests/phpstan/configs/php-bugs.neon
- tests/phpstan/configs/phpstan-bugs.neon
- tests/phpstan/configs/phpunit-wiring-tests.neon
@ -47,3 +48,5 @@ parameters:
#we'll just fill it with 10 - it's very unlikely to encounter a callable with 10 parameters anyway.
anyCallable: 'callable(mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed) : mixed'
anyClosure: '\Closure(mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed, mixed) : mixed'
PhpSocket: '\Socket'
PhpCurlHandle: '\CurlHandle'