phpstan.neon
Rama main · réplica de lectura del repositorio original.
# php -d memory_limit=1G vendor/bin/phpstan.phar analyse --level 7 --generate-baseline
# php -d memory_limit=1G vendor/bin/phpstan.phar analyse --level 7
# includes:
# - phpstan-baseline.neon
parameters:
level: 8
reportUnmatchedIgnoredErrors: false
tipsOfTheDay: false
stubFiles:
- .github/phpstan/stubs/Application.stub
ignoreErrors:
- identifier: missingType.iterableValue # Issues because Yii's ActiveRecords are recognized as Iterables
# Generic SSO plugin uses the optional dependency simplesamlphp/simplesamlphp
-
message: '#(has unknown class|on an unknown class|Instantiated class|has invalid (return |parameter )?type|Cannot import type alias) SimpleSAML#'
path: plugins/generic_sso/*
# Yii framework generic type parameter for web application context
-
message: '#PHPDoc tag @var for variable \$app contains generic class yii\\web\\Application but does not specify its types#'
path: plugins/generic_sso/*
scanDirectories:
- vendor
excludePaths:
# Has too many symbols that are not installed by default, and not worth installing them just for this file
- components/OpenTelemetryLogTarget.php
bootstrapFiles:
- .github/phpstan/bootstrap.php
scanFiles:
- config/defines.php
- assets/phpstan-helper.php
paths:
- models
- controllers
- components
- commands
- plugins
- views
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon