You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPORTANT: If you are posting code or output, please make sure you wrap it with fenced code blocks so that it is readable.
Description
PHP Fatal error: Uncaught TypeError: strtolower(): Argument #1 ($string) must be of type string, bool given in /var/www/vhosts/xxx/framework/simplepie/src/Locator.php:330
if (in_array(strtolower(strrchr($value, '.')), ['.rss', '.rdf', '.atom', '.xml'])) {
Description
PHP Fatal error: Uncaught TypeError: strtolower(): Argument #1 ($string) must be of type string, bool given in /var/www/vhosts/xxx/framework/simplepie/src/Locator.php:330
if (in_array(strtolower(strrchr($value, '.')), ['.rss', '.rdf', '.atom', '.xml'])) {
edit to
Steps to Reproduce
Steps to reproduce the behavior:
it's a cron.php which is running, can't excatly say which is the $value but
Expected Behavior
A clear and concise description of what you expected to happen.
Actual Behavior
A clear and concise description of what you expected to happen.
strrchr(string $haystack, string $needle): string|false
it's returning "false" in case of an error not a string and strtolower($str) wants that is a string.
Possible Solutions
Environment
Normal System Debian 10 with PHP 8.2
The text was updated successfully, but these errors were encountered: