idrivee2-media-upload/vendor/guzzlehttp/guzzle/phpstan-baseline.neon
2026-08-17 15:50:51 +00:00

259 lines
10 KiB
Text

parameters:
ignoreErrors:
-
message: '#^Negated boolean expression is always false\.$#'
identifier: booleanNot.alwaysFalse
count: 1
path: src/Client.php
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
count: 1
path: src/Cookie/SetCookie.php
-
message: '#^Strict comparison using \!\=\= between null and null will always evaluate to false\.$#'
identifier: notIdentical.alwaysFalse
count: 1
path: src/Cookie/SetCookie.php
-
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
count: 1
path: src/Env.php
-
message: '#^Strict comparison using \!\=\= between string and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: src/Env.php
-
message: '#^Parameter \#1 \$ch of function curl_error expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlFactory.php
-
message: '#^Parameter \#1 \$ch of function curl_getinfo expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 2
path: src/Handler/CurlFactory.php
-
message: '#^Parameter \#1 \$ch of function curl_reset expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlFactory.php
-
message: '#^Parameter \#1 \$ch of function curl_setopt expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 7
path: src/Handler/CurlFactory.php
-
message: '#^Parameter \$handle of method GuzzleHttp\\Handler\\CurlFactory\:\:applyCurlOptions\(\) has invalid type CurlHandle\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlFactory.php
-
message: '#^Parameter \$handle of method GuzzleHttp\\Handler\\CurlFactory\:\:clearEasyHandleCallbacks\(\) has invalid type CurlHandle\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlFactory.php
-
message: '#^Parameter \$handle of method GuzzleHttp\\Handler\\CurlFactory\:\:discardHandle\(\) has invalid type CurlHandle\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlFactory.php
-
message: '#^Property GuzzleHttp\\Handler\\CurlFactory\:\:\$handles has unknown class CurlHandle as its type\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlFactory.php
-
message: '#^Offset ''handle_factory''\|''transport_sharing'' on array\{handle_factory\: true, transport_sharing\: true\} in isset\(\) always exists and is not nullable\.$#'
identifier: isset.offset
count: 1
path: src/Handler/CurlHandler.php
-
message: '#^Parameter \#1 \$ch of function curl_errno expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlHandler.php
-
message: '#^Parameter \#1 \$ch of function curl_exec expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlHandler.php
-
message: '#^Method GuzzleHttp\\Handler\\CurlMultiHandler\:\:getMultiHandle\(\) has invalid return type CurlMultiHandle\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#1 \$ch of function curl_setopt expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 8
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#1 \$mh of function curl_multi_add_handle expects resource, CurlMultiHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#1 \$mh of function curl_multi_close expects resource, CurlMultiHandle\|resource given\.$#'
identifier: argument.type
count: 2
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#1 \$mh of function curl_multi_exec expects resource, CurlMultiHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#1 \$mh of function curl_multi_info_read expects resource, CurlMultiHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#1 \$mh of function curl_multi_remove_handle expects resource, CurlMultiHandle\|resource given\.$#'
identifier: argument.type
count: 2
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#1 \$mh of function curl_multi_select expects resource, CurlMultiHandle\|resource given\.$#'
identifier: argument.type
count: 3
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#2 \$ch of function curl_multi_add_handle expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \#2 \$ch of function curl_multi_remove_handle expects resource, CurlHandle\|resource given\.$#'
identifier: argument.type
count: 2
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \$handle of method GuzzleHttp\\Handler\\CurlMultiHandler\:\:clearEasyHandleCallbacks\(\) has invalid type CurlHandle\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Parameter \$handle of method GuzzleHttp\\Handler\\CurlMultiHandler\:\:removeHandleFromMulti\(\) has invalid type CurlHandle\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Property GuzzleHttp\\Handler\\CurlMultiHandler\:\:\$multiHandle \(CurlMultiHandle\|resource\|null\) is never assigned CurlMultiHandle so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Property GuzzleHttp\\Handler\\CurlMultiHandler\:\:\$multiHandle has unknown class CurlMultiHandle as its type\.$#'
identifier: class.notFound
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Strict comparison using \=\=\= between false and resource will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: '#^Property GuzzleHttp\\Handler\\EasyHandle\:\:\$handle has unknown class CurlHandle as its type\.$#'
identifier: class.notFound
count: 1
path: src/Handler/EasyHandle.php
-
message: '#^Offset ''max_host_connections''\|''max_total…''\|''transport_sharing'' on array\{max_host_connections\: true, max_total_connections\: true, transport_sharing\: true\} in isset\(\) always exists and is not nullable\.$#'
identifier: isset.offset
count: 1
path: src/Handler/StreamHandler.php
-
message: '#^Call to function array_key_exists\(\) with 0 and array\{callable\(callable&THandler\)\: \(callable&THandler\), string\|null\} will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/HandlerStack.php
-
message: '#^Call to function is_array\(\) with array\{callable\(callable&THandler\)\: \(callable&THandler\), string\|null\} will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/HandlerStack.php
-
message: '#^Call to function is_callable\(\) with callable\(\)\: mixed&THandler will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 2
path: src/HandlerStack.php
-
message: '#^Call to function is_callable\(\) with callable\(callable&THandler\)\: \(callable&THandler\) will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 2
path: src/HandlerStack.php
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
count: 1
path: src/HandlerStack.php
-
message: '#^Result of \|\| is always false\.$#'
identifier: booleanOr.alwaysFalse
count: 2
path: src/HandlerStack.php
-
message: '#^Instanceof between ArrayAccess\<int, array\<string, mixed\>\> and ArrayAccess will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/Middleware.php
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
count: 1
path: src/Middleware.php
-
message: '#^Method GuzzleHttp\\Pool\:\:keyedRequestOptions\(\) should return array\{base_uri\?\: Psr\\Http\\Message\\UriInterface\|string, allow_redirects\?\: array\{max\?\: int, strict\?\: bool, referer\?\: bool, protocols\?\: non\-empty\-array\<string\>, on_redirect\?\: callable\(Psr\\Http\\Message\\RequestInterface, Psr\\Http\\Message\\ResponseInterface, Psr\\Http\\Message\\UriInterface\)\: mixed, track_redirects\?\: bool\}\|bool, auth\?\: array\{0\: string, 1\: string, 2\?\: string\|null\}\|string\|false\|null, body\?\: callable\-object\|Iterator\|Psr\\Http\\Message\\StreamInterface\|resource\|string\|Stringable\|null, cert\?\: array\{0\: string, 1\?\: string\|null\}\|string, cert_type\?\: string, connect_timeout\?\: float\|int, cookies\?\: GuzzleHttp\\Cookie\\CookieJarInterface\|false, \.\.\.\} but returns array\{base_uri\?\: Psr\\Http\\Message\\UriInterface\|string, allow_redirects\?\: array\{max\?\: int, strict\?\: bool, referer\?\: bool, protocols\?\: non\-empty\-array\<string\>, on_redirect\?\: \(callable\(Psr\\Http\\Message\\RequestInterface, Psr\\Http\\Message\\ResponseInterface, Psr\\Http\\Message\\UriInterface, int\|string\)\: mixed\)\|\(Closure\(Psr\\Http\\Message\\RequestInterface, Psr\\Http\\Message\\ResponseInterface, Psr\\Http\\Message\\UriInterface\)\: void\), track_redirects\?\: bool\}\|bool, auth\?\: array\{0\: string, 1\: string, 2\?\: string\|null\}\|string\|false\|null, body\?\: callable\-object\|Iterator\|Psr\\Http\\Message\\StreamInterface\|resource\|string\|Stringable\|null, cert\?\: array\{0\: string, 1\?\: string\|null\}\|string, cert_type\?\: string, connect_timeout\?\: float\|int, cookies\?\: GuzzleHttp\\Cookie\\CookieJarInterface\|false, \.\.\.\}\.$#'
identifier: return.type
count: 1
path: src/Pool.php
-
message: '#^Parameter \#1 \$options of class GuzzleHttp\\Handler\\CurlHandler constructor expects array\{handle_factory\?\: GuzzleHttp\\Handler\\CurlFactoryInterface\|null, transport_sharing\?\: mixed\}, array\<string, mixed\> given\.$#'
identifier: argument.type
count: 2
path: src/Utils.php