diff --git a/phpstan-baseline-dbal-4.neon b/phpstan-baseline-dbal-4.neon index 24536b91..2e0880ce 100644 --- a/phpstan-baseline-dbal-4.neon +++ b/phpstan-baseline-dbal-4.neon @@ -30,4 +30,219 @@ parameters: count: 1 path: src/Type/Doctrine/Query/QueryResultTypeWalker.php + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: tests/Classes/entity-manager.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: tests/Classes/entity-manager.php + + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: tests/DoctrineIntegration/ORM/entity-manager.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: tests/DoctrineIntegration/ORM/entity-manager.php + + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php + + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: tests/Rules/DeadCode/entity-manager.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: tests/Rules/DeadCode/entity-manager.php + + - + rawMessage: 'Parameter #2 $type of static method Doctrine\DBAL\Types\Type::addType() expects class-string|Doctrine\DBAL\Types\Type, string given.' + identifier: argument.type + count: 1 + path: tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php + + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: tests/Rules/Properties/entity-manager.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: tests/Rules/Properties/entity-manager.php + + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: tests/Type/Doctrine/DBAL/mysqli.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: tests/Type/Doctrine/DBAL/mysqli.php + + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: tests/Type/Doctrine/DBAL/pdo.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: tests/Type/Doctrine/DBAL/pdo.php + + - + rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailed().' + identifier: staticMethod.notFound + count: 2 + path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php + + - + rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailedInvalidType().' + identifier: staticMethod.notFound + count: 2 + path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php + + - + rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailed().' + identifier: staticMethod.notFound + count: 2 + path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php + + - + rawMessage: 'Call to an undefined static method Doctrine\DBAL\Types\ConversionException::conversionFailedInvalidType().' + identifier: staticMethod.notFound + count: 2 + path: tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php + - + rawMessage: ''' + Access to constant on deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: classConstant.deprecatedClass + count: 1 + path: src/Doctrine/Mapping/ClassMetadataFactory.php + + - + rawMessage: ''' + Call to method __construct() of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: method.deprecatedClass + count: 1 + path: src/Doctrine/Mapping/ClassMetadataFactory.php + + - + rawMessage: ''' + Instantiation of deprecated class Doctrine\ORM\Mapping\Driver\AnnotationDriver: + This class will be removed in 3.0 without replacement. + Copyright (c) Doctrine Project + From https://github.com/doctrine/orm/blob/40fbbf4429b0d66517244051237a2bd0616a7a13/src/Mapping/Driver/AnnotationDriver.php + ''' + identifier: new.deprecatedClass + count: 1 + path: src/Doctrine/Mapping/ClassMetadataFactory.php diff --git a/tests/Rules/Doctrine/ORM/FakeTestingRamseyUuidType.php b/tests/Rules/Doctrine/ORM/FakeTestingRamseyUuidType.php index a81fdc64..51594f97 100644 --- a/tests/Rules/Doctrine/ORM/FakeTestingRamseyUuidType.php +++ b/tests/Rules/Doctrine/ORM/FakeTestingRamseyUuidType.php @@ -56,7 +56,7 @@ public function getName(): string return self::NAME; } - public function requiresSQLCommentHint(AbstractPlatform $platform): bool + public function requiresSQLCommentHint(AbstractPlatform $platform): bool // @phpstan-ignore return.tooWideBool { return true; } diff --git a/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php b/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php index 389303bf..bd6b87c0 100644 --- a/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php +++ b/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUlidType.php @@ -100,7 +100,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str } } - public function requiresSQLCommentHint(AbstractPlatform $platform): bool + public function requiresSQLCommentHint(AbstractPlatform $platform): bool // @phpstan-ignore return.tooWideBool { return true; } diff --git a/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php b/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php index 89d853ef..8217af22 100644 --- a/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php +++ b/tests/Rules/Doctrine/ORM/FakeTestingSymfonyUuidType.php @@ -100,7 +100,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str } } - public function requiresSQLCommentHint(AbstractPlatform $platform): bool + public function requiresSQLCommentHint(AbstractPlatform $platform): bool // @phpstan-ignore return.tooWideBool { return true; }