Prevent possible warnings on unset variables #447
Annotations
7 errors
PHPStan:
src/Request.php#L1
Ignored error pattern #^Parameter \#2 \$subject of function preg_match expects string, mixed given\.$# in path /home/runner/work/psr7/psr7/src/Request.php was not matched in reported errors.
|
PHPStan:
src/Request.php#L1
Ignored error pattern #^Property GuzzleHttp\\Psr7\\Request\:\:\$requestTarget \(string\|null\) does not accept mixed\.$# in path /home/runner/work/psr7/psr7/src/Request.php was not matched in reported errors.
|
PHPStan
Process completed with exit code 1.
|
RedundantCast:
src/Response.php#L132
src/Response.php:132:17: RedundantCast: Redundant cast to int (see https://psalm.dev/262)
|
RedundantCast:
src/Response.php#L140
src/Response.php:140:30: RedundantCast: Redundant cast to string (see https://psalm.dev/262)
|
RedundantCast:
src/Stream.php#L200
src/Stream.php:200:19: RedundantCast: Redundant cast to int (see https://psalm.dev/262)
|
Psalm
Process completed with exit code 2.
|