1
0
Fork 0

Extract phpstan extension config into its own file

pull/10635/head
Jordi Boggiano 2022-04-29 09:04:02 +02:00
parent bd6403a6be
commit 474d0dc82d
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 11 additions and 6 deletions

View File

@ -4,6 +4,7 @@ includes:
- ../vendor/phpstan/phpstan-strict-rules/rules.neon
- ../vendor/phpstan/phpstan-symfony/extension.neon
- ../vendor/phpstan/phpstan-symfony/rules.neon
- ./rules.neon # Composer-specific PHPStan extensions, can be reused by third party packages by including 'vendor/composer/composer/phpstan/rules.neon' in your phpstan config
- ./baseline.neon
- ./ignore-by-php-version.neon.php
@ -58,9 +59,3 @@ parameters:
- Composer\Composer::VERSION
- Composer\Composer::RELEASE_DATE
- Composer\Composer::SOURCE_VERSION
services:
-
class: Composer\PHPStan\ConfigReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension

10
phpstan/rules.neon Normal file
View File

@ -0,0 +1,10 @@
# Composer-specific PHPStan extensions
#
# These can be reused by third party packages by including 'vendor/composer/composer/phpstan/rules.neon'
# in your phpstan config
services:
-
class: Composer\PHPStan\ConfigReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension