Skip to content

Fix test code for PHPStan level 9 #88

Fix test code for PHPStan level 9

Fix test code for PHPStan level 9 #88

Triggered via pull request October 19, 2023 09:53
Status Failure
Total duration 30s
Artifacts

phpstan.yml

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

Annotations

5 errors
Run PHPStan with PHP 8.2: tests/Unit/V1/ErrorCollectionTest.php#L50
Parameter #1 $key of method Art4\JsonApiClient\Helper\AbstractElement::has() expects Art4\JsonApiClient\Helper\AccessKey|int|string, stdClass given.
Run PHPStan with PHP 8.2: tests/Unit/V1/ErrorCollectionTest.php#L51
Parameter #1 $key of method Art4\JsonApiClient\Helper\AbstractElement::has() expects Art4\JsonApiClient\Helper\AccessKey|int|string, array given.
Run PHPStan with PHP 8.2: tests/Unit/V1/ResourceCollectionTest.php#L47
Parameter #1 $key of method Art4\JsonApiClient\Helper\AbstractElement::has() expects Art4\JsonApiClient\Helper\AccessKey|int|string, stdClass given.
Run PHPStan with PHP 8.2: tests/Unit/V1/ResourceCollectionTest.php#L48
Parameter #1 $key of method Art4\JsonApiClient\Helper\AbstractElement::has() expects Art4\JsonApiClient\Helper\AccessKey|int|string, array given.
Run PHPStan with PHP 8.2
Process completed with exit code 1.