Skip to content

Compatibility with ORM 3 and DBAL 4 #619

Compatibility with ORM 3 and DBAL 4

Compatibility with ORM 3 and DBAL 4 #619

Triggered via pull request October 15, 2023 17:11
Status Failure
Total duration 36s
Artifacts

static-analysis.yml

on: pull_request
Matrix: Static Analysis with PHPStan
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Static Analysis with PHPStan (8.1): lib/Doctrine/Migrations/DependencyFactory.php#L1
Ignored error pattern ~^Call to deprecated method getEventManager\(\) of class Doctrine\\DBAL\\Connection\.$~ in path /home/runner/work/migrations/migrations/lib/Doctrine/Migrations/DependencyFactory.php was not matched in reported errors.
Static Analysis with PHPStan (8.1): lib/Doctrine/Migrations/DependencyFactory.php#L450
Only booleans are allowed in an if condition, Doctrine\Common\EventManager|null given.
Static Analysis with PHPStan (8.1): lib/Doctrine/Migrations/DependencyFactory.php#L460
Call to an undefined method Doctrine\DBAL\Connection::getEventManager().
Static Analysis with PHPStan (8.1): lib/Doctrine/Migrations/Generator/DiffGenerator.php#L113
Strict comparison using !== between callable(): mixed and null will always evaluate to true.
Static Analysis with PHPStan (8.1): lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php#L142
Class Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper not found.
Static Analysis with PHPStan (8.1): lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php#L145
Call to method getEntityManager() on an unknown class Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper.
Static Analysis with PHPStan (8.1): tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php#L209
Class class@anonymous/tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php:209 constructor invoked with 0 parameters, 1 required.
Static Analysis with PHPStan (8.1): tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php#L212
Static method class@anonymous/tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php:209::compareSchemas() overrides non-static method Doctrine\DBAL\Schema\Comparator::compareSchemas().
Static Analysis with PHPStan (8.1): tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php#L219
Dynamic call to static method PHPUnit\Framework\TestCase::createStub().
Static Analysis with PHPStan (8.1): tests/Doctrine/Migrations/Tests/Tools/Console/legacy-config-orm/cli-config.php#L1
Ignored error pattern #^Instantiation of deprecated class Doctrine\\ORM\\Tools\\Console\\Helper\\EntityManagerHelper\: This class will be removed in ORM 3\.0 without replacement\.$# in path /home/runner/work/migrations/migrations/tests/Doctrine/Migrations/Tests/Tools/Console/legacy-config-orm/cli-config.php was not matched in reported errors.