Skip to content

5.next: adjust PHPUnit for Cake 5.1 #508

5.next: adjust PHPUnit for Cake 5.1

5.next: adjust PHPUnit for Cake 5.1 #508

Triggered via pull request January 11, 2024 20:14
Status Failure
Total duration 50s
Artifacts

ci.yml

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

Annotations

15 errors
testsuite / testsuite-linux (8.3, sqlite, highest, false)
Process completed with exit code 1.
testsuite / testsuite-linux (8.1, sqlite, lowest, false)
Process completed with exit code 1.
testsuite / testsuite-linux (8.1, pgsql, highest, false)
Process completed with exit code 1.
testsuite / testsuite-linux (8.2, mysql, false)
Process completed with exit code 1.
testsuite / testsuite-linux (8.1, mysql, highest, false)
Process completed with exit code 1.
cs-stan / Coding Standard & Static Analysis: src/Command/BenchmarkCommand.php#L59
Comparison operation "<" between int<0, max> and 10|100|array<int, string>|bool|string|null results in an error.
cs-stan / Coding Standard & Static Analysis: src/Command/BenchmarkCommand.php#L61
Comparison operation "<=" between 10|100|array<int, string>|string|true and 1 results in an error.
cs-stan / Coding Standard & Static Analysis: src/Controller/PanelsController.php#L34
Method DebugKit\Controller\PanelsController::viewClasses() should return array<int, string> but returns array<string, string>.
cs-stan / Coding Standard & Static Analysis: src/Model/Entity/Panel.php#L36
PHPDoc type array<string> of property DebugKit\Model\Entity\Panel::$_hidden is not covariant with PHPDoc type array<int, string> of overridden property Cake\ORM\Entity::$_hidden.
cs-stan / Coding Standard & Static Analysis
Process completed with exit code 1.
PossiblyInvalidArgument: src/Command/BenchmarkCommand.php#L61
src/Command/BenchmarkCommand.php:61:23: PossiblyInvalidArgument: Argument 1 of floor expects float|int, but possibly different type array<array-key, mixed>|float provided (see https://psalm.dev/092)
MoreSpecificReturnType: src/Controller/PanelsController.php#L32
src/Controller/PanelsController.php:32:36: MoreSpecificReturnType: The declared return type 'list<string>' for DebugKit\Controller\PanelsController::viewClasses is more specific than the inferred return type 'array{json: Cake\View\JsonView::class}' (see https://psalm.dev/070)
LessSpecificReturnStatement: src/Controller/PanelsController.php#L34
src/Controller/PanelsController.php:34:16: LessSpecificReturnStatement: The type 'array{json: Cake\View\JsonView::class}' is more general than the declared return type 'list<string>' for DebugKit\Controller\PanelsController::viewClasses (see https://psalm.dev/129)
NonInvariantDocblockPropertyType: src/Model/Entity/Panel.php#L36
src/Model/Entity/Panel.php:36:21: NonInvariantDocblockPropertyType: Property DebugKit\Model\Entity\Panel::$_hidden has type array<array-key, string>, not invariant with Cake\Datasource\EntityTrait::$_hidden of type list<string> (see https://psalm.dev/267)
cs-stan / Coding Standard & Static Analysis
Process completed with exit code 2.