Skip to content

Fix test code for PHPStan level 9 #90

Fix test code for PHPStan level 9

Fix test code for PHPStan level 9 #90

Triggered via pull request October 19, 2023 14:44
Status Failure
Total duration 39s
Artifacts

phpstan.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Run PHPStan with PHP 8.2: src/V1/ResourceNull.php#L50
Result of && is always false.
Run PHPStan with PHP 8.2: src/V1/ResourceNull.php#L50
Result of || is always false.
Run PHPStan with PHP 8.2: tests/Unit/Helper/AccessableTraitTest.php#L34
Call to an undefined method PHPUnit\Framework\MockObject\MockObject::has().
Run PHPStan with PHP 8.2: tests/Unit/Helper/AccessableTraitTest.php#L55
Call to an undefined method PHPUnit\Framework\MockObject\MockObject::has().
Run PHPStan with PHP 8.2: tests/Unit/V1/ResourceNullTest.php#L90
Parameter #1 $key of method Art4\JsonApiClient\V1\ResourceNull::has() expects Art4\JsonApiClient\Helper\AccessKey|int|string, stdClass given.
Run PHPStan with PHP 8.2: tests/Unit/V1/ResourceNullTest.php#L115
Parameter #1 $key of method Art4\JsonApiClient\V1\ResourceNull::has() expects Art4\JsonApiClient\Helper\AccessKey|int|string, array given.