Fixes error:
$ ./tests/check_coding_standards.sh
PHP_CodeSniffer version 3.7.1 (stable) by Squiz (http://www.squiz.net)
ERROR: Referenced sniff "PHPCS23Utils" does not exist
Run "phpcs --help" for usage information
Error: found standard violation(s)
Comment out installed_paths config to fix error:
$ ./tests/check_coding_standards.sh
PHP_CodeSniffer version 3.7.1 (stable) by Squiz (http://www.squiz.net)
ERROR: Referenced sniff "PHPCS23Utils" does not exist
Run "phpcs --help" for usage information
Error: found standard violation(s)
PHP 8 error messages:
TypeError: array_keys(): Argument #1 ($array) must be of type array, stdClass given
TypeError: array_values(): Argument #1 ($array) must be of type array, stdClass given
PHP 7 error messages:
TypeError: array_keys() expects parameter 1 to be array, object given
TypeError: array_values() expects parameter 1 to be array, object given
Error message:
Warning: curl_multi_info_read(): supplied resource is not a valid
cURL handle resource in
./vendor/php-curl-class/php-curl-class/src/Curl/MultiCurl.php on
line 999
Error message:
PHP Fatal error: Uncaught Psalm\Exception\ConfigException: Error
parsing file /home/runner/work/php-curl-class/php-curl-class/ on
line 8: Element '{https://getpsalm.org/schema/config}psalm': No
matching global declaration available for the validation root.
Messages:
ERROR: UndefinedClass - src/Curl/Curl.php:217:64 - Class, interface or enum named CurlHandle does not exist (see https://psalm.dev/019)
if (is_resource($this->curl) || $this->curl instanceof \CurlHandle) {
ERROR: UndefinedClass - src/Curl/Curl.php:1570:64 - Class, interface or enum named CurlHandle does not exist (see https://psalm.dev/019)
if (is_resource($this->curl) || $this->curl instanceof \CurlHandle) {
ERROR: UndefinedClass - src/Curl/MultiCurl.php:396:74 - Class, interface or enum named CurlMultiHandle does not exist (see https://psalm.dev/019)
if (is_resource($this->multiCurl) || $this->multiCurl instanceof \CurlMultiHandle) {