mirror of
https://github.com/doctrine/migrations.git
synced 2026-03-23 22:42:14 +01:00
60 lines
2.7 KiB
Plaintext
60 lines
2.7 KiB
Plaintext
parameters:
|
|
level: 8
|
|
paths:
|
|
- src
|
|
- tests
|
|
excludePaths:
|
|
# uses a trait that is not available on the most recent versions
|
|
- src/Provider/LazySchema.php
|
|
- tests/Configuration/ConfigurationTestSource/Migrations/Version123.php
|
|
- tests/Tools/Console/legacy-config-orm/cli-config.php
|
|
ignoreErrors:
|
|
- '~Variable method call on Doctrine\\Migrations\\AbstractMigration~'
|
|
-
|
|
message: '~^Call to function in_array\(\) requires parameter #3 to be true\.$~'
|
|
path: src/Version/SortedMigrationPlanCalculator.php
|
|
-
|
|
message: '~^Call to function is_bool\(\) with bool will always evaluate to true\.$~'
|
|
path: src/InlineParameterFormatter.php
|
|
|
|
# https://github.com/phpstan/phpstan/issues/5982
|
|
-
|
|
message: '~^Cannot call method getWrappedConnection\(\) on class-string\|object\.~'
|
|
path: src/Tools/TransactionHelper.php
|
|
|
|
# TODO: Be more precise about class-strings
|
|
-
|
|
message: '~^Method Doctrine\\Migrations\\Version\\DbalMigrationFactory::createVersion\(\) should return Doctrine\\Migrations\\AbstractMigration but returns object\.$~'
|
|
paths:
|
|
- src/Version/DbalMigrationFactory.php
|
|
|
|
# ORM 2 + DBAL 3 backwards compatibility
|
|
-
|
|
message: '~^Call to an undefined method Doctrine\\DBAL\\Connection\:\:getEventManager\(\)\.$~'
|
|
path: src/DependencyFactory.php
|
|
|
|
-
|
|
message: '~^Strict comparison using !== between callable\(\)\: mixed and null will always evaluate to true\.$~'
|
|
path: src/Generator/DiffGenerator.php
|
|
|
|
-
|
|
message: '~Doctrine\\ORM\\Tools\\Console\\Helper\\EntityManagerHelper~'
|
|
path: src/Tools/Console/ConsoleRunner.php
|
|
-
|
|
message: '#^Call to deprecated method setPrimaryKey\(\) of class Doctrine\\DBAL\\Schema\\Table\:\nUse \{\@see addPrimaryKeyConstraint\(\)\} instead\.$#'
|
|
paths:
|
|
- src/Metadata/Storage/TableMetadataStorage.php
|
|
- tests/Metadata/Storage/ExistingTableMetadataStorageTest.php
|
|
- tests/Metadata/Storage/TableMetadataStorageTest.php
|
|
-
|
|
message: '~^Parameter #1 \$array \(list<string>\) of array_values is already a list, call has no effect\.$~'
|
|
path: tests/Generator/DiffGeneratorTest.php
|
|
symfony:
|
|
consoleApplicationLoader: tests/doctrine-migrations-phpstan-app.php
|
|
includes:
|
|
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
|
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
|
- vendor/phpstan/phpstan-phpunit/rules.neon
|
|
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
|
- vendor/phpstan/phpstan-symfony/extension.neon
|