Refactor HttpResource
to improve request handling.
#220
Annotations
10 errors and 1 warning
Run PHPStan:
src/Halo/HaloRenderer.php#L263
Argument of an invalid type mixed supplied for foreach, only iterables are supported.
|
Run PHPStan:
src/Halo/HaloRenderer.php#L264
Parameter #1 $objectOrClass of class ReflectionClass constructor expects class-string<T of object>|T of object, mixed given.
|
Run PHPStan:
src/Halo/HaloRenderer.php#L266
Part $interceptor (mixed) of encapsed string cannot be cast to string.
|
Run PHPStan:
src/Halo/TemplateLocator.php#L71
Cannot access property $name on Ray\Aop\ReflectionClass<object>|false.
|
Run PHPStan:
src/Http/CreateResponse.php#L24
Method BEAR\Dev\Http\CreateResponse::__invoke() has parameter $output with no value type specified in iterable type array.
|
Run PHPStan:
src/Http/CreateResponse.php#L38
Cannot cast mixed to string.
|
Run PHPStan:
src/Http/CreateResponse.php#L58
Parameter #1 $headers of method BEAR\Dev\Http\CreateResponse::getHeaders() expects array<string>, list<mixed> given.
|
Run PHPStan:
src/Http/CreateResponse.php#L61
Parameter #1 $body of method BEAR\Dev\Http\CreateResponse::getJsonView() expects array<string>, list given.
|
Run PHPStan:
src/Http/CreateResponse.php#L105
Parameter #2 $callback of function array_filter expects (callable(string): bool)|null, 'strlen' given.
|
Run PHPStan:
src/Http/HttpResource.php#L90
Method BEAR\Dev\Http\HttpResource::safeRequest() has parameter $query with no value type specified in iterable type array.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading