1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-17 21:38:16 +01:00
guzzle/phpstan-baseline.neon

308 lines
10 KiB
Plaintext

parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$str of function strtolower expects string, int\\|string given\\.$#"
count: 1
path: src/Client.php
-
message: "#^Parameter \\#2 \\$prefix of function http_build_query expects string, null given\\.$#"
count: 1
path: src/Client.php
-
message: "#^Method GuzzleHttp\\\\Cookie\\\\CookieJar\\:\\:getIterator\\(\\) return type with generic class ArrayIterator does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Cookie/CookieJar.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\|false given\\.$#"
count: 1
path: src/Cookie/CookieJar.php
-
message: "#^Interface GuzzleHttp\\\\Cookie\\\\CookieJarInterface extends generic interface IteratorAggregate but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Cookie/CookieJarInterface.php
-
message: "#^Parameter \\#1 \\$string of function strlen expects string, bool\\|float\\|int\\|object\\|string\\|null given\\.$#"
count: 1
path: src/Cookie/FileCookieJar.php
-
message: "#^Strict comparison using \\=\\=\\= between array and null will always evaluate to false\\.$#"
count: 1
path: src/Cookie/SetCookie.php
-
message: "#^Parameter \\#1 \\$timestamp of method GuzzleHttp\\\\Cookie\\\\SetCookie\\:\\:setExpires\\(\\) expects int, mixed given\\.$#"
count: 1
path: src/Cookie/SetCookie.php
-
message: "#^Method GuzzleHttp\\\\Cookie\\\\SetCookie\\:\\:getExpires\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Cookie/SetCookie.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: src/Cookie/SetCookie.php
-
message: "#^Parameter \\#1 \\$str of function ltrim expects string, string\\|null given\\.$#"
count: 1
path: src/Cookie/SetCookie.php
-
message: "#^Method GuzzleHttp\\\\Exception\\\\BadResponseException\\:\\:getResponse\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns Psr\\\\Http\\\\Message\\\\ResponseInterface\\|null\\.$#"
count: 1
path: src/Exception/BadResponseException.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: src/Handler/CurlFactory.php
-
message: "#^If condition is always true\\.$#"
count: 1
path: src/Handler/CurlFactory.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Handler/CurlFactory.php
-
message: "#^Parameter \\#1 \\$str1 of function strcasecmp expects string, int\\|string given\\.$#"
count: 1
path: src/Handler/CurlFactory.php
-
message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$active has no typehint specified\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$handles has no typehint specified\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$delays has no typehint specified\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$options has no typehint specified\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:__get\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:__get\\(\\) has parameter \\$name with no typehint specified\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Property GuzzleHttp\\\\Handler\\\\CurlMultiHandler\\:\\:\\$_mh \\(resource\\) does not accept resource\\|false\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Parameter \\#1 \\$mh of function curl_multi_setopt expects resource, resource\\|false given\\.$#"
count: 1
path: src/Handler/CurlMultiHandler.php
-
message: "#^Parameter \\#1 \\$status of class GuzzleHttp\\\\Psr7\\\\Response constructor expects int, string given\\.$#"
count: 1
path: src/Handler/EasyHandle.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\EasyHandle\\:\\:__get\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Handler/EasyHandle.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\EasyHandle\\:\\:__get\\(\\) has parameter \\$name with no typehint specified\\.$#"
count: 1
path: src/Handler/EasyHandle.php
-
message: "#^Parameter \\#2 \\$parameters of function call_user_func_array expects array\\<int, mixed\\>, array given\\.$#"
count: 1
path: src/Handler/MockHandler.php
-
message: "#^Binary operation \"\\*\" between float\\|int\\|string and 1000 results in an error\\.$#"
count: 1
path: src/Handler/MockHandler.php
-
message: "#^PHPDoc tag @param for parameter \\$values with type array is not subtype of native type array\\<int, mixed\\>\\.$#"
count: 1
path: src/Handler/MockHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\MockHandler\\:\\:invokeStats\\(\\) has parameter \\$reason with no typehint specified\\.$#"
count: 1
path: src/Handler/MockHandler.php
-
message: "#^Property GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:\\$lastHeaders has no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:invokeStats\\(\\) has parameter \\$error with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:invokeStats\\(\\) has parameter \\$startTime with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:createResponse\\(\\) has parameter \\$startTime with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:createResponse\\(\\) has parameter \\$stream with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Parameter \\#1 \\$status of class GuzzleHttp\\\\Psr7\\\\Response constructor expects int, string given\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:checkDecode\\(\\) has parameter \\$stream with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Parameter \\#3 \\$use_include_path of function fopen expects bool, null given\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Parameter \\#1 \\$stream of function stream_set_timeout expects resource, resource\\|false given\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Cannot access offset 0 on array\\|false\\.$#"
count: 2
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:add_proxy\\(\\) has parameter \\$value with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:add_timeout\\(\\) has parameter \\$value with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:add_verify\\(\\) has parameter \\$value with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:add_cert\\(\\) has parameter \\$value with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:add_progress\\(\\) has parameter \\$value with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Method GuzzleHttp\\\\Handler\\\\StreamHandler\\:\\:add_debug\\(\\) has parameter \\$value with no typehint specified\\.$#"
count: 1
path: src/Handler/StreamHandler.php
-
message: "#^Parameter \\#1 \\$obj of function spl_object_hash expects object, callable given\\.$#"
count: 1
path: src/HandlerStack.php
-
message: "#^Method GuzzleHttp\\\\MessageFormatter\\:\\:format\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/MessageFormatter.php
-
message: "#^Method GuzzleHttp\\\\Middleware\\:\\:history\\(\\) has parameter \\$container with generic interface ArrayAccess but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Middleware.php
-
message: "#^Result of && is always false\\.$#"
count: 1
path: src/Middleware.php
-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Pool.php
-
message: "#^Parameter \\#1 \\$str of function substr expects string, int given\\.$#"
count: 1
path: src/RedirectMiddleware.php
-
message: "#^Parameter \\#1 \\$promise of method GuzzleHttp\\\\RedirectMiddleware\\:\\:withTracking\\(\\) expects GuzzleHttp\\\\Promise\\\\PromiseInterface, GuzzleHttp\\\\Promise\\\\PromiseInterface\\|Psr\\\\Http\\\\Message\\\\ResponseInterface given\\.$#"
count: 1
path: src/RedirectMiddleware.php
-
message: "#^Parameter \\#2 \\$value of method Psr\\\\Http\\\\Message\\\\MessageInterface\\:\\:withHeader\\(\\) expects array\\<string\\>\\|string, array\\<int\\|string\\> given\\.$#"
count: 1
path: src/RedirectMiddleware.php
-
message: "#^Method GuzzleHttp\\\\Utils\\:\\:describeType\\(\\) has parameter \\$input with no typehint specified\\.$#"
count: 1
path: src/Utils.php
-
message: "#^Parameter \\#1 \\$str of function rtrim expects string, string\\|false given\\.$#"
count: 1
path: src/Utils.php
-
message: "#^Method GuzzleHttp\\\\Utils\\:\\:debugResource\\(\\) should return resource but returns resource\\|false\\.$#"
count: 1
path: src/Utils.php
-
message: "#^Cannot access offset 0 on array\\<int, string\\>\\|false\\.$#"
count: 1
path: src/Utils.php
-
message: "#^Method GuzzleHttp\\\\Utils\\:\\:jsonEncode\\(\\) should return string but returns string\\|false\\.$#"
count: 1
path: src/Utils.php
-
message: "#^Function GuzzleHttp\\\\describe_type\\(\\) has parameter \\$input with no typehint specified\\.$#"
count: 1
path: src/functions.php