Skip to content

Add explicit renameColumn method for Table (#6080) #4

Add explicit renameColumn method for Table (#6080)

Add explicit renameColumn method for Table (#6080) #4

Triggered via push January 26, 2024 10:33
Status Failure
Total duration 37s
Artifacts
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 2 warnings
MoreSpecificReturnType: src/Platforms/OraclePlatform.php#L525
src/Platforms/OraclePlatform.php:525:56: MoreSpecificReturnType: The declared return type 'list<string>' for Doctrine\DBAL\Platforms\OraclePlatform::getAlterTableSQL is more specific than the inferred return type 'array<array-key, string>' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Platforms/OraclePlatform.php#L627
src/Platforms/OraclePlatform.php:627:16: LessSpecificReturnStatement: The type 'array<array-key, string>' is more general than the declared return type 'list<string>' for Doctrine\DBAL\Platforms\OraclePlatform::getAlterTableSQL (see https://psalm.dev/129)
MoreSpecificReturnType: src/Platforms/PostgreSQLPlatform.php#L201
src/Platforms/PostgreSQLPlatform.php:201:56: MoreSpecificReturnType: The declared return type 'list<string>' for Doctrine\DBAL\Platforms\PostgreSQLPlatform::getAlterTableSQL is more specific than the inferred return type 'array<array-key, string>' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Platforms/PostgreSQLPlatform.php#L309
src/Platforms/PostgreSQLPlatform.php:309:16: LessSpecificReturnStatement: The type 'array<array-key, string>' is more general than the declared return type 'list<string>' for Doctrine\DBAL\Platforms\PostgreSQLPlatform::getAlterTableSQL (see https://psalm.dev/129)
MoreSpecificReturnType: src/Platforms/SQLServerPlatform.php#L357
src/Platforms/SQLServerPlatform.php:357:56: MoreSpecificReturnType: The declared return type 'list<string>' for Doctrine\DBAL\Platforms\SQLServerPlatform::getAlterTableSQL is more specific than the inferred return type 'array<array-key, string>' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Platforms/SQLServerPlatform.php#L479
src/Platforms/SQLServerPlatform.php:479:16: LessSpecificReturnStatement: The type 'array<array-key, string>' is more general than the declared return type 'list<string>' for Doctrine\DBAL\Platforms\SQLServerPlatform::getAlterTableSQL (see https://psalm.dev/129)
PossiblyInvalidArrayOffset: src/Schema/Comparator.php#L200
src/Schema/Comparator.php:200:17: PossiblyInvalidArrayOffset: Cannot access value on variable $droppedColumns using a string offset, expecting lowercase-string (see https://psalm.dev/116)
InvalidArgument: src/Schema/Comparator.php#L210
src/Schema/Comparator.php:210:37: InvalidArgument: Argument 1 of Doctrine\DBAL\Schema\Comparator::detectRenamedColumns expects array<string, Doctrine\DBAL\Schema\ColumnDiff>, but array<int<0, max>|string, Doctrine\DBAL\Schema\ColumnDiff> provided (see https://psalm.dev/004)
RedundantFunctionCall: tests/Functional/Platform/RenameColumnTest.php#L62
tests/Functional/Platform/RenameColumnTest.php:62:20: RedundantFunctionCall: The call to array_values is unnecessary, list<Doctrine\DBAL\Schema\Column> is already a list (see https://psalm.dev/280)
UndefinedClass: tests/Functional/Schema/ComparatorTest.php#L52
tests/Functional/Schema/ComparatorTest.php:52:27: UndefinedClass: Class, interface or enum named Doctrine\DBAL\Tests\Functional\Schema\Comparator does not exist (see https://psalm.dev/019)
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L52
Instantiated class Doctrine\DBAL\Tests\Functional\Schema\Comparator not found.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L71
Call to method compareTables() on an unknown class Doctrine\DBAL\Tests\Functional\Schema\Comparator.
Static Analysis with PHPStan (8.2): tests/Platforms/AbstractPlatformTestCase.php#L998
Parameter $args of method Doctrine\DBAL\Tests\Platforms\GetAlterTableSqlDispatchEventListener::onSchemaAlterTable() has invalid type Doctrine\DBAL\Tests\Platforms\SchemaAlterTableEventArgs.
Static Analysis with PHPStan (8.2): tests/Platforms/AbstractPlatformTestCase.php#L1000
Parameter $args of method Doctrine\DBAL\Tests\Platforms\GetAlterTableSqlDispatchEventListener::onSchemaAlterTableAddColumn() has invalid type Doctrine\DBAL\Tests\Platforms\SchemaAlterTableAddColumnEventArgs.
Static Analysis with PHPStan (8.2): tests/Platforms/AbstractPlatformTestCase.php#L1002
Parameter $args of method Doctrine\DBAL\Tests\Platforms\GetAlterTableSqlDispatchEventListener::onSchemaAlterTableRemoveColumn() has invalid type Doctrine\DBAL\Tests\Platforms\SchemaAlterTableRemoveColumnEventArgs.
Static Analysis with PHPStan (8.2): tests/Platforms/AbstractPlatformTestCase.php#L1004
Parameter $args of method Doctrine\DBAL\Tests\Platforms\GetAlterTableSqlDispatchEventListener::onSchemaAlterTableChangeColumn() has invalid type Doctrine\DBAL\Tests\Platforms\SchemaAlterTableChangeColumnEventArgs.
Static Analysis with PHPStan (8.2): tests/Platforms/AbstractPlatformTestCase.php#L1006
Parameter $args of method Doctrine\DBAL\Tests\Platforms\GetAlterTableSqlDispatchEventListener::onSchemaAlterTableRenameColumn() has invalid type Doctrine\DBAL\Tests\Platforms\SchemaAlterTableRenameColumnEventArgs.
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.
Static Analysis with Psalm (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static Analysis with PHPStan (8.2)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.