Skip to content

Code style

Code style #12

Triggered via push January 26, 2024 13:39
Status Failure
Total duration 3m 2s
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/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.
Static Analysis with PHPStan (8.2): tests/Platforms/AbstractPlatformTestCase.php#L861
Parameter $changedColumns of class Doctrine\DBAL\Schema\TableDiff constructor expects array<string, Doctrine\DBAL\Schema\ColumnDiff>, array<int, Doctrine\DBAL\Schema\ColumnDiff> given.
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): tests/Platforms/DB2PlatformTest.php#L450
Parameter $changedColumns of class Doctrine\DBAL\Schema\TableDiff constructor expects array<string, Doctrine\DBAL\Schema\ColumnDiff>, array<int, Doctrine\DBAL\Schema\ColumnDiff> given.
Static Analysis with PHPStan (8.2): tests/Platforms/SQLServerPlatformTest.php#L670
Parameter $changedColumns of class Doctrine\DBAL\Schema\TableDiff constructor expects array<string, Doctrine\DBAL\Schema\ColumnDiff>, array<int, Doctrine\DBAL\Schema\ColumnDiff> given.
Static Analysis with PHPStan (8.2): tests/Platforms/SQLServerPlatformTest.php#L689
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)
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)
UndefinedClass: tests/Platforms/AbstractPlatformTestCase.php#L1000
tests/Platforms/AbstractPlatformTestCase.php:1000:49: UndefinedClass: Class, interface or enum named Doctrine\DBAL\Tests\Platforms\SchemaAlterTableAddColumnEventArgs 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/.