Fix | PHPStan v1.11 #474
Annotations
7 errors and 1 warning
src/Http/Pool.php#L157
Match arm is unreachable because previous comparison is always true.
|
src/Traits/Macroable.php (in context of class Saloon/Http/PendingRequest)#L48
Ignored error pattern #^Parameter \#1 \$object of method ReflectionMethod\:\:invoke\(\) expects object\|null, class-string\|object given.$# in path /home/runner/work/saloon/saloon/src/Traits/Macroable.php is expected to occur 1 time, but occurred 2 times.
|
src/Traits/Macroable.php (in context of class Saloon/Http/PendingRequest)#L77
Ignored error pattern #^Parameter \#1 \$callback of function call_user_func_array expects callable\(\)\: mixed, \(callable\(\)\: mixed\)\|object given.$# in path /home/runner/work/saloon/saloon/src/Traits/Macroable.php is expected to occur 2 times, but occurred 4 times.
|
src/Traits/Macroable.php (in context of class Saloon/Http/Response)#L48
Parameter #1 $object of method ReflectionMethod::invoke() expects object|null, class-string|object given.
|
src/Traits/Macroable.php (in context of class Saloon/Http/Response)#L77
Parameter #1 $callback of function call_user_func_array expects callable(): mixed, (callable(): mixed)|object given.
|
src/Traits/Macroable.php (in context of class Saloon/Http/Response)#L97
Parameter #1 $callback of function call_user_func_array expects callable(): mixed, (callable(): mixed)|object given.
|
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
This job failed
Loading