PHPstan report for /www/www-live/wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie (level 10)

File Context Line no Type Description
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 55 if.alwaysTrue If condition is always true.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 55 if.condNotBoolean Only booleans are allowed in an if condition, int given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 78 missingType.return Method SimpleCookie::mysettings() has no return type specified.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 84 argument.type Parameter #2 $array of function implode expects array|null, string given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 93 missingType.return Method SimpleCookie::admin_scripts() has no return type specified.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 94 argument.type Parameter #5 $media of function wp_enqueue_style expects string, false given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 98 missingType.return Method SimpleCookie::enqueue_scripts() has no return type specified.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 101 argument.type Parameter #5 $media of function wp_enqueue_style expects string, false given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 102 if.condNotBoolean Only booleans are allowed in an if condition, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 103 argument.type Parameter #1 $file of function get_theme_file_uri expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 103 argument.type Parameter #5 $media of function wp_enqueue_style expects string, false given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 106 if.condNotBoolean Only booleans are allowed in an if condition, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 107 argument.type Parameter #1 $file of function get_theme_file_uri expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 114 missingType.return Method SimpleCookie::set_meta_tags() has no return type specified.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 115 if.condNotBoolean Only booleans are allowed in an if condition, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 116 argument.type Parameter #1 $text of function esc_html expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 118 if.condNotBoolean Only booleans are allowed in an if condition, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 119 argument.type Parameter #1 $text of function esc_html expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 120 elseif.condNotBoolean Only booleans are allowed in an elseif condition, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 121 argument.type Parameter #1 $post of function get_post expects int|WP_Post|null, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 122 if.condNotBoolean Only booleans are allowed in an if condition, WP_Post|null given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 126 if.condNotBoolean Only booleans are allowed in an if condition, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 127 argument.type Parameter #1 $text of function esc_html expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 132 missingType.return Method SimpleCookie::admin_menu() has no return type specified.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 137 missingType.return Method SimpleCookie::options_form() has no return type specified.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 139 argument.type Parameter #2 $subject of function preg_split expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 179 argument.type Parameter #1 $text of function esc_html expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 188 argument.type Parameter #1 $text of function esc_html expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 199 argument.type Parameter #2 $haystack of function in_array expects array, list<string>|false given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 210 argument.type Parameter #1 $text of function esc_html expects string, mixed given.
wordpress-sites/wp6.shelfordsandstaplefordscouts.org.uk/htdocs/wp-content/plugins/simple-cookie/simple-cookie.php - 219 argument.type Parameter #1 $text of function esc_html expects string, mixed given.