Skip to content

PHPStan level 8

PHPStan level 8 #640

Re-run triggered February 15, 2024 07:30
Status Failure
Total duration 49s
Artifacts

ci.yml

on: pull_request
Matrix: check-code-style
Matrix: test-compiled
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

70 errors and 9 warnings
PHP: 8.0: src/HTTP/Parser.php#L249
Cannot assign new offset to array<string>|string.
PHP: 8.0: src/HTTP/Parser.php#L251
Binary operation ".=" between non-empty-array<string>|string and non-falsy-string results in an error.
PHP: 8.0: src/Item.php#L151
Parameter #2 $type of method SimplePie\SimplePie::sanitize() expects 0|1|2|4|8|16|32|63, int<0, 63> given.
PHP: 8.0: src/Item.php#L151
Parameter #3 $base of method SimplePie\SimplePie::sanitize() expects string, string|null given.
PHP: 8.0: src/Locator.php#L274
Method SimplePie\Locator::search_elements_by_tag() should return array<string, SimplePie\HTTP\Response> but returns array<int|string, SimplePie\HTTP\Response>.
PHP: 8.0: src/Locator.php#L445
Parameter #2 $options of class SimplePie\HTTP\FileClient constructor expects array{timeout?: int, redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array}, array{timeout: int, redirects: 5, useragent: string|null, force_fsockopen: bool, curl_options: array<int, mixed>} given.
PHP: 8.0: src/Misc.php#L104
Method SimplePie\Misc::get_element() should return array<array{tag: string, self_closing: bool, attribs: array<string, array{data: string}>, content: string}> but returns array<int<0, max>, array{tag: string, full: string, offset: int, self_closing: bool, content?: string, attribs: array<string, array{data: string}>}>.
PHP: 8.0: src/Misc.php#L2169
Binary operation "." between 'Error occurred: ' and array<string>|string results in an error.
PHP: 8.0: src/Misc.php#L2187
Binary operation "." between ' Overloading: ' and array|int|string|false results in an error.
PHP: 8.0: src/Parser.php#L288
Property SimplePie\Parser::$xml_base (array<string>) does not accept array<bool|string>.
PHP: 7.4: library/SimplePie/Decode/HTML/Entities.php#L554
Parameter #1 $string of function strlen expects string, string|false given.
PHP: 8.2: src/HTTP/Parser.php#L249
Cannot assign new offset to array<string>|string.
PHP: 7.4: src/HTTP/Parser.php#L249
Cannot assign new offset to array<string>|string.
PHP: 8.2: src/HTTP/Parser.php#L251
Binary operation ".=" between non-empty-array<string>|string and non-falsy-string results in an error.
PHP: 7.4: src/HTTP/Parser.php#L251
Binary operation ".=" between non-empty-array<string>|string and non-falsy-string results in an error.
PHP: 8.2: src/Item.php#L151
Parameter #2 $type of method SimplePie\SimplePie::sanitize() expects 0|1|2|4|8|16|32|63, int<0, 63> given.
PHP: 7.4: src/IRI.php#L814
Parameter #1 $iuserinfo of method SimplePie\IRI::set_userinfo() expects string|null, string|false|null given.
PHP: 8.2: src/Item.php#L151
Parameter #3 $base of method SimplePie\SimplePie::sanitize() expects string, string|null given.
PHP: 7.4: src/Item.php#L151
Parameter #2 $type of method SimplePie\SimplePie::sanitize() expects 0|1|2|4|8|16|32|63, int<0, 63> given.
PHP: 8.2: src/Locator.php#L274
Method SimplePie\Locator::search_elements_by_tag() should return array<string, SimplePie\HTTP\Response> but returns array<int|string, SimplePie\HTTP\Response>.
PHP: 7.4: src/Item.php#L151
Parameter #3 $base of method SimplePie\SimplePie::sanitize() expects string, string|null given.
PHP: 8.2: src/Locator.php#L445
Parameter #2 $options of class SimplePie\HTTP\FileClient constructor expects array{timeout?: int, redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array}, array{timeout: int, redirects: 5, useragent: string|null, force_fsockopen: bool, curl_options: array<int, mixed>} given.
PHP: 7.4: src/Locator.php#L274
Method SimplePie\Locator::search_elements_by_tag() should return array<string, SimplePie\HTTP\Response> but returns array<int|string, SimplePie\HTTP\Response>.
PHP: 8.2: src/Misc.php#L104
Method SimplePie\Misc::get_element() should return array<array{tag: string, self_closing: bool, attribs: array<string, array{data: string}>, content: string}> but returns array<int<0, max>, array{tag: string, full: string, offset: int, self_closing: bool, content?: string, attribs: array<string, array{data: string}>}>.
PHP: 7.4: src/Locator.php#L445
Parameter #2 $options of class SimplePie\HTTP\FileClient constructor expects array{timeout?: int, redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array}, array{timeout: int, redirects: 5, useragent: string|null, force_fsockopen: bool, curl_options: array<int, mixed>} given.
PHP: 8.2: src/Misc.php#L2169
Binary operation "." between 'Error occurred: ' and array<string>|string results in an error.
PHP: 7.4: src/Misc.php#L104
Method SimplePie\Misc::get_element() should return array<array{tag: string, self_closing: bool, attribs: array<string, array{data: string}>, content: string}> but returns array<int<0, max>, array{tag: string, full: string, offset: int, self_closing: bool, content?: string, attribs: array<string, array{data: string}>}>.
PHP: 7.4: src/Misc.php#L2169
Binary operation "." between 'Error occurred: ' and array<string>|string results in an error.
PHP: 8.2: src/Misc.php#L2187
Binary operation "." between ' Overloading: ' and array<int|string, array|int|string>|int|string|false|null results in an error.
PHP: 8.2: src/Parser.php#L288
Property SimplePie\Parser::$xml_base (array<string>) does not accept array<bool|string>.
PHP: 8.3: src/HTTP/Parser.php#L249
Cannot assign new offset to array<string>|string.
PHP: 8.3: src/HTTP/Parser.php#L251
Binary operation ".=" between non-empty-array<string>|string and non-falsy-string results in an error.
PHP: 8.3: src/Item.php#L151
Parameter #2 $type of method SimplePie\SimplePie::sanitize() expects 0|1|2|4|8|16|32|63, int<0, 63> given.
PHP: 8.3: src/Item.php#L151
Parameter #3 $base of method SimplePie\SimplePie::sanitize() expects string, string|null given.
PHP: 8.3: src/Locator.php#L274
Method SimplePie\Locator::search_elements_by_tag() should return array<string, SimplePie\HTTP\Response> but returns array<int|string, SimplePie\HTTP\Response>.
PHP: 8.3: src/Locator.php#L445
Parameter #2 $options of class SimplePie\HTTP\FileClient constructor expects array{timeout?: int, redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array}, array{timeout: int, redirects: 5, useragent: string|null, force_fsockopen: bool, curl_options: array<int, mixed>} given.
PHP: 8.3: src/Misc.php#L104
Method SimplePie\Misc::get_element() should return array<array{tag: string, self_closing: bool, attribs: array<string, array{data: string}>, content: string}> but returns array<int<0, max>, array{tag: string, full: string, offset: int, self_closing: bool, content?: string, attribs: array<string, array{data: string}>}>.
PHP: 8.3: src/Misc.php#L2169
Binary operation "." between 'Error occurred: ' and array<string>|string results in an error.
PHP: 8.3: src/Misc.php#L2187
Binary operation "." between ' Overloading: ' and array<int|string, array|int|string>|int|string|false|null results in an error.
PHP: 8.3: src/Parser.php#L288
Property SimplePie\Parser::$xml_base (array<string>) does not accept array<bool|string>.
PHP: 7.2: library/SimplePie/Decode/HTML/Entities.php#L554
Parameter #1 $string of function strlen expects string, string|false given.
PHP: 7.2: src/HTTP/Parser.php#L249
Cannot assign new offset to array<string>|string.
PHP: 7.2: src/HTTP/Parser.php#L251
Binary operation ".=" between non-empty-array<string>|string and non-falsy-string results in an error.
PHP: 7.2: src/IRI.php#L814
Parameter #1 $iuserinfo of method SimplePie\IRI::set_userinfo() expects string|null, string|false|null given.
PHP: 7.2: src/Item.php#L151
Parameter #2 $type of method SimplePie\SimplePie::sanitize() expects 0|1|2|4|8|16|32|63, int<0, 63> given.
PHP: 7.2: src/Item.php#L151
Parameter #3 $base of method SimplePie\SimplePie::sanitize() expects string, string|null given.
PHP: 7.2: src/Locator.php#L274
Method SimplePie\Locator::search_elements_by_tag() should return array<string, SimplePie\HTTP\Response> but returns array<int|string, SimplePie\HTTP\Response>.
PHP: 7.2: src/Locator.php#L445
Parameter #2 $options of class SimplePie\HTTP\FileClient constructor expects array{timeout?: int, redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array}, array{timeout: int, redirects: 5, useragent: string|null, force_fsockopen: bool, curl_options: array<int, mixed>} given.
PHP: 7.2: src/Misc.php#L104
Method SimplePie\Misc::get_element() should return array<array{tag: string, self_closing: bool, attribs: array<string, array{data: string}>, content: string}> but returns array<int<0, max>, array{tag: string, full: string, offset: int, self_closing: bool, content?: string, attribs: array<string, array{data: string}>}>.
PHP: 7.2: src/Misc.php#L2169
Binary operation "." between 'Error occurred: ' and array<string>|string results in an error.
PHP: 7.3: library/SimplePie/Decode/HTML/Entities.php#L554
Parameter #1 $string of function strlen expects string, string|false given.
PHP: 7.3: src/HTTP/Parser.php#L249
Cannot assign new offset to array<string>|string.
PHP: 7.3: src/HTTP/Parser.php#L251
Binary operation ".=" between non-empty-array<string>|string and non-falsy-string results in an error.
PHP: 7.3: src/IRI.php#L814
Parameter #1 $iuserinfo of method SimplePie\IRI::set_userinfo() expects string|null, string|false|null given.
PHP: 7.3: src/Item.php#L151
Parameter #2 $type of method SimplePie\SimplePie::sanitize() expects 0|1|2|4|8|16|32|63, int<0, 63> given.
PHP: 7.3: src/Item.php#L151
Parameter #3 $base of method SimplePie\SimplePie::sanitize() expects string, string|null given.
PHP: 7.3: src/Locator.php#L274
Method SimplePie\Locator::search_elements_by_tag() should return array<string, SimplePie\HTTP\Response> but returns array<int|string, SimplePie\HTTP\Response>.
PHP: 7.3: src/Locator.php#L445
Parameter #2 $options of class SimplePie\HTTP\FileClient constructor expects array{timeout?: int, redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array}, array{timeout: int, redirects: 5, useragent: string|null, force_fsockopen: bool, curl_options: array<int, mixed>} given.
PHP: 7.3: src/Misc.php#L104
Method SimplePie\Misc::get_element() should return array<array{tag: string, self_closing: bool, attribs: array<string, array{data: string}>, content: string}> but returns array<int<0, max>, array{tag: string, full: string, offset: int, self_closing: bool, content?: string, attribs: array<string, array{data: string}>}>.
PHP: 7.3: src/Misc.php#L2169
Binary operation "." between 'Error occurred: ' and array<string>|string results in an error.
PHP: 8.1: src/HTTP/Parser.php#L249
Cannot assign new offset to array<string>|string.
PHP: 8.1: src/HTTP/Parser.php#L251
Binary operation ".=" between non-empty-array<string>|string and non-falsy-string results in an error.
PHP: 8.1: src/Item.php#L151
Parameter #2 $type of method SimplePie\SimplePie::sanitize() expects 0|1|2|4|8|16|32|63, int<0, 63> given.
PHP: 8.1: src/Item.php#L151
Parameter #3 $base of method SimplePie\SimplePie::sanitize() expects string, string|null given.
PHP: 8.1: src/Locator.php#L274
Method SimplePie\Locator::search_elements_by_tag() should return array<string, SimplePie\HTTP\Response> but returns array<int|string, SimplePie\HTTP\Response>.
PHP: 8.1: src/Locator.php#L445
Parameter #2 $options of class SimplePie\HTTP\FileClient constructor expects array{timeout?: int, redirects?: int, useragent?: string, force_fsockopen?: bool, curl_options?: array}, array{timeout: int, redirects: 5, useragent: string|null, force_fsockopen: bool, curl_options: array<int, mixed>} given.
PHP: 8.1: src/Misc.php#L104
Method SimplePie\Misc::get_element() should return array<array{tag: string, self_closing: bool, attribs: array<string, array{data: string}>, content: string}> but returns array<int<0, max>, array{tag: string, full: string, offset: int, self_closing: bool, content?: string, attribs: array<string, array{data: string}>}>.
PHP: 8.1: src/Misc.php#L2169
Binary operation "." between 'Error occurred: ' and array<string>|string results in an error.
PHP: 8.1: src/Misc.php#L2187
Binary operation "." between ' Overloading: ' and array|int|string|false results in an error.
PHP: 8.1: src/Parser.php#L288
Property SimplePie\Parser::$xml_base (array<string>) does not accept array<bool|string>.
Test single-file build | PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check code style | PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: 8.0
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: 7.4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: 8.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: 7.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: 7.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP: 8.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.