Skip to content

Import adapter base classes and MysqlAdapter #459

Import adapter base classes and MysqlAdapter

Import adapter base classes and MysqlAdapter #459

Triggered via pull request December 26, 2023 21:14
Status Failure
Total duration 1m 13s
Artifacts

ci.yml

on: pull_request
cs-stan  /  Coding Standard & Static Analysis
45s
cs-stan / Coding Standard & Static Analysis
Matrix: testsuite-linux
Fit to window
Zoom out
Zoom in

Annotations

20 errors
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/AbstractAdapter.php#L339
Class Migrations\Util\Literal not found.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L158
Parameter #4 $options of method Migrations\Db\Adapter\PdoAdapter::createPdoConnection() expects array<int, mixed>, array<int|string, mixed> given.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L279
Offset 'id' on non-empty-array<string, mixed> in isset() always exists and is not nullable.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L283
Offset 'id' on non-empty-array<string, mixed> in isset() always exists and is not nullable.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L332
Parameter #1 $column of method Migrations\Db\Adapter\MysqlAdapter::getColumnSqlDefinition() expects Migrations\Db\Table\Column, Migrations\Db\Table\Column|Phinx\Db\Table\Column given.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L351
Parameter #1 $index of method Migrations\Db\Adapter\MysqlAdapter::getIndexSqlDefinition() expects Migrations\Db\Table\Index, Phinx\Db\Table\Index given.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L501
Method Migrations\Db\Adapter\MysqlAdapter::getColumns() should return array<Phinx\Db\Table\Column> but returns array<int<0, max>, Migrations\Db\Table\Column>.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L1363
Possibly invalid array key type Migrations\Db\Literal|string.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/MysqlAdapter.php#L1391
Parameter #2 $columnType of method Migrations\Db\Adapter\PdoAdapter::getDefaultValueDefinition() expects string|null, Migrations\Db\Literal|string given.
RedundantPropertyInitializationCheck: src/Db/Adapter/AbstractAdapter.php#L159
src/Db/Adapter/AbstractAdapter.php:159:14: RedundantPropertyInitializationCheck: Property $this->output with type Symfony\Component\Console\Output\OutputInterface should already be set in the constructor (see https://psalm.dev/261)
InvalidArgument: src/Db/Adapter/AbstractAdapter.php#L310
src/Db/Adapter/AbstractAdapter.php:310:71: InvalidArgument: Argument 3 of Migrations\Db\Table::__construct expects Phinx\Db\Adapter\AdapterInterface|null, but Migrations\Db\Adapter\AbstractAdapter&static provided (see https://psalm.dev/004)
UndefinedClass: src/Db/Adapter/AbstractAdapter.php#L339
src/Db/Adapter/AbstractAdapter.php:339:46: UndefinedClass: Class, interface or enum named Migrations\Util\Literal does not exist (see https://psalm.dev/019)
PossiblyNullArgument: src/Db/Adapter/MysqlAdapter.php#L332
src/Db/Adapter/MysqlAdapter.php:332:44: PossiblyNullArgument: Argument 1 of Migrations\Db\Adapter\MysqlAdapter::quoteColumnName cannot be null, possibly null value provided (see https://psalm.dev/078)
PossiblyInvalidArgument: src/Db/Adapter/MysqlAdapter.php#L332
src/Db/Adapter/MysqlAdapter.php:332:102: PossiblyInvalidArgument: Argument 1 of Migrations\Db\Adapter\MysqlAdapter::getColumnSqlDefinition expects Migrations\Db\Table\Column, but possibly different type Migrations\Db\Table\Column|Phinx\Db\Table\Column provided (see https://psalm.dev/092)
RedundantCondition: src/Db/Adapter/MysqlAdapter.php#L339
src/Db/Adapter/MysqlAdapter.php:339:17: RedundantCondition: Type string for $options['primary_key'] is always string (see https://psalm.dev/122)
TypeDoesNotContainType: src/Db/Adapter/MysqlAdapter.php#L341
src/Db/Adapter/MysqlAdapter.php:341:23: TypeDoesNotContainType: Type never for $options['primary_key'] is never array<array-key, mixed> (see https://psalm.dev/056)
InvalidArgument: src/Db/Adapter/MysqlAdapter.php#L351
src/Db/Adapter/MysqlAdapter.php:351:57: InvalidArgument: Argument 1 of Migrations\Db\Adapter\MysqlAdapter::getIndexSqlDefinition expects Migrations\Db\Table\Index, but Phinx\Db\Table\Index provided (see https://psalm.dev/004)
RedundantCondition: src/Db/Adapter/MysqlAdapter.php#L383
src/Db/Adapter/MysqlAdapter.php:383:23: RedundantCondition: Type non-empty-array<array-key, string> for $newColumns is always array<array-key, mixed> (see https://psalm.dev/122)
InvalidReturnType: src/Db/Adapter/MysqlAdapter.php#L416
src/Db/Adapter/MysqlAdapter.php:416:93: InvalidReturnType: The declared return type 'Migrations\Db\Util\AlterInstructions&Migrations\Db\AlterInstructions' for Migrations\Db\Adapter\MysqlAdapter::getRenameTableInstructions is incorrect, got 'Migrations\Db\AlterInstructions' (see https://psalm.dev/011)