Skip to content

Using Accessable::has() with object or array is deprecated #89

Using Accessable::has() with object or array is deprecated

Using Accessable::has() with object or array is deprecated #89

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

phpstan.yml

on: push
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.