Skip to content

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

Add explicit renameColumn method for Table (#6080)

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

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

Annotations

20 errors and 2 warnings
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L53
Class Doctrine\DBAL\Schema\Comparator constructor invoked with 0 parameters, 1 required.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L75
Call to an undefined method Doctrine\DBAL\Schema\TableDiff::getModifiedColumns().
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L78
Access to private property Doctrine\DBAL\Schema\TableDiff::$changedColumns.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L79
Access to private property Doctrine\DBAL\Schema\TableDiff::$changedColumns.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L80
Access to private property Doctrine\DBAL\Schema\TableDiff::$changedColumns.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L84
Access to an undefined property Doctrine\DBAL\Schema\ColumnDiff::$changedProperties.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L91
Access to an undefined property Doctrine\DBAL\Schema\ColumnDiff::$changedProperties.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L99
Access to an undefined property Doctrine\DBAL\Schema\ColumnDiff::$changedProperties.
Static Analysis with PHPStan (8.2): tests/Functional/Schema/ComparatorTest.php#L102
Cannot redeclare method Doctrine\DBAL\Tests\Functional\Schema\ComparatorTest::testRenameColumnComparison().
Static Analysis with PHPStan (8.2): tests/Platforms/AbstractPlatformTestCase.php#L479
Parameter $changedColumns of class Doctrine\DBAL\Schema\TableDiff constructor expects array<string, Doctrine\DBAL\Schema\ColumnDiff>, array<int, Doctrine\DBAL\Schema\ColumnDiff> given.
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)
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)
DuplicateMethod: tests/Functional/Schema/ComparatorTest.php#L102
tests/Functional/Schema/ComparatorTest.php:102:5: DuplicateMethod: Method Doctrine\DBAL\Tests\Functional\Schema\ComparatorTest::testrenamecolumncomparison has already been defined in /home/runner/work/dbal/dbal/tests/Functional/Schema/ComparatorTest.php (see https://psalm.dev/178)
UndefinedClass: tests/Platforms/AbstractPlatformTestCase.php#L998
tests/Platforms/AbstractPlatformTestCase.php:998:40: UndefinedClass: Class, interface or enum named Doctrine\DBAL\Tests\Platforms\SchemaAlterTableEventArgs does not exist (see https://psalm.dev/019)
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/.
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/.