FILE: ./src/Curl/Curl.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------------
1688 | WARNING | Method name "_getCurlErrorCodeConstants" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1707 | WARNING | Method name "_getCurlErrorCodeConstant" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1721 | WARNING | Method name "_getCurlOptionCodeConstants" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1745 | WARNING | Method name "_getEffectiveUrl" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1755 | WARNING | Method name "_getRfc2616" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1765 | WARNING | Method name "_getRfc6265" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
1775 | WARNING | Method name "_getTotalTime" should not be prefixed with an underscore to indicate visibility
| | (PSR2.Methods.MethodDeclaration.Underscore)
----------------------------------------------------------------------------------------------------------------------------------
This change attempts to determine which underlying constants were
bitmasked together to reach the resulting value passed to curl_setopt()
using Curl::setOpt().
Error message:
ERROR: InvalidArrayOffset - ../src/Curl/Curl.php:2182:25 - Cannot
access value on variable $response_header_array using a int<-1, max>
offset, expecting int<0, max> (see https://psalm.dev/115)
if (stripos($response_header_array[$i], 'HTTP/') === 0) {
Error message:
ERROR: MethodSignatureMustProvideReturnType -
../src/Curl/Url.php:18:21 - Method Curl\Url::__toString must have a
return type signature! (see https://psalm.dev/282) public function
__toString()