5.next: adjust PHPUnit for Cake 5.1 #508
Annotations
10 errors
Run phpstan:
src/Command/BenchmarkCommand.php#L59
Comparison operation "<" between int<0, max> and 10|100|array<int, string>|bool|string|null results in an error.
|
Run phpstan:
src/Command/BenchmarkCommand.php#L61
Comparison operation "<=" between 10|100|array<int, string>|string|true and 1 results in an error.
|
Run phpstan:
src/Controller/PanelsController.php#L34
Method DebugKit\Controller\PanelsController::viewClasses() should return array<int, string> but returns array<string, string>.
|
Run phpstan:
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.
|
Run phpstan
Process completed with exit code 1.
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading