Skip to content

Migrations adapter #660

Migrations adapter

Migrations adapter #660

Triggered via pull request September 30, 2024 03:38
Status Failure
Total duration 2m 47s
Artifacts

ci.yml

on: pull_request
Windows - PHP 8.1 & SQL Server
2m 34s
Windows - PHP 8.1 & SQL Server
cs-stan  /  Coding Standard & Static Analysis
52s
cs-stan / Coding Standard & Static Analysis
Matrix: testsuite-linux
Fit to window
Zoom out
Zoom in

Annotations

27 errors and 4 warnings
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/PhinxAdapter.php#L496
Parameter #1 $migration of method Migrations\Db\Adapter\AdapterInterface::migrated() expects Migrations\MigrationInterface, Phinx\Migration\MigrationInterface given.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/PhinxAdapter.php#L506
Parameter #1 $migration of method Migrations\Db\Adapter\AdapterInterface::toggleBreakpoint() expects Migrations\MigrationInterface, Phinx\Migration\MigrationInterface given.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/PhinxAdapter.php#L524
Parameter #1 $migration of method Migrations\Db\Adapter\AdapterInterface::setBreakpoint() expects Migrations\MigrationInterface, Phinx\Migration\MigrationInterface given.
cs-stan / Coding Standard & Static Analysis: src/Db/Adapter/PhinxAdapter.php#L534
Parameter #1 $migration of method Migrations\Db\Adapter\AdapterInterface::unsetBreakpoint() expects Migrations\MigrationInterface, Phinx\Migration\MigrationInterface given.
cs-stan / Coding Standard & Static Analysis: src/Migration/Manager.php#L264
Else branch is unreachable because previous condition is always true.
cs-stan / Coding Standard & Static Analysis: src/Migration/Manager.php#L456
PHPDoc tag @param for parameter $migration with type Phinx\Migration\MigrationInterface is not subtype of native type Migrations\MigrationInterface.
cs-stan / Coding Standard & Static Analysis: src/Migration/Manager.php#L520
PHPDoc tag @param for parameter $migration with type Phinx\Migration\MigrationInterface is not subtype of native type Migrations\MigrationInterface.
cs-stan / Coding Standard & Static Analysis: src/Migration/Manager.php#L786
Property Migrations\Migration\Manager::$migrations (array<Phinx\Migration\MigrationInterface>|null) does not accept array<Migrations\MigrationInterface>.
cs-stan / Coding Standard & Static Analysis: src/Migration/Manager.php#L817
PHPDoc tag @var for variable $versions contains unknown class Migration\MigrationInterface.
cs-stan / Coding Standard & Static Analysis: src/Migration/Manager.php#L827
Call to an undefined method object::getVersion().
cs-stan / Coding Standard & Static Analysis: src/MigrationInterface.php#L20
Type Symfony\Component\Console\Input\InputInterface is not used in this file.
cs-stan / Coding Standard & Static Analysis: src/MigrationInterface.php#L21
Type Symfony\Component\Console\Output\OutputInterface is not used in this file.
cs-stan / Coding Standard & Static Analysis: src/Migration/Environment.php#L15
Type Migrations\Db\Adapter\PhinxAdapter is not used in this file.
cs-stan / Coding Standard & Static Analysis: src/Migration/Environment.php#L17
Use statements should be sorted alphabetically. The first wrong one is Migrations\MigrationInterface.
cs-stan / Coding Standard & Static Analysis: tests/TestCase/Migration/ManagerTest.php#L16
Type Migrations\Shim\OutputAdapter is not used in this file.
cs-stan / Coding Standard & Static Analysis: tests/TestCase/Migration/ManagerTest.php#L21
Type Symfony\Component\Console\Input\InputInterface is not used in this file.
cs-stan / Coding Standard & Static Analysis
Process completed with exit code 1.
InvalidArgument: src/Db/Adapter/PhinxAdapter.php#L496
src/Db/Adapter/PhinxAdapter.php:496:34: InvalidArgument: Argument 1 of Migrations\Db\Adapter\AdapterInterface::migrated expects Migrations\MigrationInterface, but Phinx\Migration\MigrationInterface provided (see https://psalm.dev/004)
InvalidArgument: src/Db/Adapter/PhinxAdapter.php#L506
src/Db/Adapter/PhinxAdapter.php:506:42: InvalidArgument: Argument 1 of Migrations\Db\Adapter\AdapterInterface::toggleBreakpoint expects Migrations\MigrationInterface, but Phinx\Migration\MigrationInterface provided (see https://psalm.dev/004)
InvalidArgument: src/Db/Adapter/PhinxAdapter.php#L524
src/Db/Adapter/PhinxAdapter.php:524:39: InvalidArgument: Argument 1 of Migrations\Db\Adapter\AdapterInterface::setBreakpoint expects Migrations\MigrationInterface, but Phinx\Migration\MigrationInterface provided (see https://psalm.dev/004)
InvalidArgument: src/Db/Adapter/PhinxAdapter.php#L534
src/Db/Adapter/PhinxAdapter.php:534:41: InvalidArgument: Argument 1 of Migrations\Db\Adapter\AdapterInterface::unsetBreakpoint expects Migrations\MigrationInterface, but Phinx\Migration\MigrationInterface provided (see https://psalm.dev/004)
PossiblyUndefinedMethod: src/Migration/Manager.php#L268
src/Migration/Manager.php:268:21: PossiblyUndefinedMethod: Method Phinx\Migration\MigrationInterface::setConfig does not exist (see https://psalm.dev/108)
PossiblyInvalidArgument: src/Migration/Manager.php#L272
src/Migration/Manager.php:272:28: PossiblyInvalidArgument: Argument 1 of Migrations\Db\Adapter\AdapterInterface::migrated expects Migrations\MigrationInterface, but possibly different type Migrations\Shim\MigrationAdapter|Phinx\Migration\MigrationInterface provided (see https://psalm.dev/092)
InvalidArgument: src/Migration/Manager.php#L431
src/Migration/Manager.php:431:45: InvalidArgument: Argument 1 of Migrations\Migration\Manager::executeMigration expects Phinx\Migration\MigrationInterface, but Migrations\MigrationInterface provided (see https://psalm.dev/004)
InvalidArgument: src/Migration/Manager.php#L443
src/Migration/Manager.php:443:41: InvalidArgument: Argument 1 of Migrations\Migration\Manager::executeMigration expects Phinx\Migration\MigrationInterface, but Migrations\MigrationInterface provided (see https://psalm.dev/004)
MismatchingDocblockParamType: src/Migration/Manager.php#L451
src/Migration/Manager.php:451:15: MismatchingDocblockParamType: Parameter $migration has wrong type 'Phinx\Migration\MigrationInterface', should be 'Migrations\MigrationInterface' (see https://psalm.dev/141)
InvalidArgument: src/Migration/Manager.php#L471
src/Migration/Manager.php:471:51: InvalidArgument: Argument 1 of Migrations\Migration\Environment::executeMigration expects Migrations\MigrationInterface, but Phinx\Migration\MigrationInterface provided (see https://psalm.dev/004)
testsuite-linux (8.1, mysql)
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
Windows - PHP 8.1 & SQL Server
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Windows - PHP 8.1 & SQL Server
Codecov: Failed to properly create commit: The process 'D:\a\_actions\codecov\codecov-action\v4\dist\codecov.exe' failed with exit code 1
Windows - PHP 8.1 & SQL Server
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/