PHPStan Level 5 Fehler
Beim Ausführen von PHPStan auf Level 5 gibt es die nachfolgenden Fehler.
Die Fehler wurden ersteinmal in die Baseline übernommen.
Bitte die Fehler sichten und die wichtigsten beheben.
Möglicherweise sind die Fehler nicht mehr aktuell, daher besser PHPStan ohne Baseline selbst ausführen.
-
src/QUI/Smarty/Smarty4.php:84:Property Smarty_Internal_TemplateBase::$compile_check (int) does not accept false.
-
src/QUI/Smarty/Smarty4.php:87:Property Smarty_Internal_TemplateBase::$compile_check (int) does not accept true.
-
src/QUI/Smarty/Smarty4.php:93:Property Smarty_Internal_TemplateBase::$compile_check (int) does not accept false.
-
src/QUI/Smarty/plugins_qui/QuiqqerTemplateFetch.php:97:Binary operation "." between 'Template file "' and non-empty-array<int, string> results in an error.
-
src/QUI/Smarty/plugins_qui/block.cache.php:36:Strict comparison using === between string and null will always evaluate to false.
-
src/QUI/Smarty/plugins_qui/block.t.php:27:Strict comparison using === between string and null will always evaluate to false.
-
src/QUI/Smarty/plugins_qui/function.image.php:181:Strict comparison using === between 'QUI\\Projects\\Media\\Image' and 'QUI\\Projects\\Media\\Video' will always evaluate to false.
-
src/QUI/Smarty/plugins_qui/function.image.php:273:Offset 'width' on array in isset() always exists and is not nullable.
-
src/QUI/Smarty/plugins_qui/function.image.php:277:Offset 'height' on array in isset() always exists and is not nullable.
-
src/QUI/Smarty/plugins_qui/function.include_css.php:22:PHPDoc tag @param has invalid value (Smarty): Unexpected token "\n *", expected variable at offset 185
-
src/QUI/Smarty/plugins_qui/function.include_css.php:22:PHPDoc tag @param has invalid value (array params): Unexpected token "params", expected variable at offset 162
-
src/QUI/Smarty/plugins_qui/function.json_encode.php:24:Function smarty_function_json_encode() never returns void so it can be removed from the return type.
-
src/QUI/Smarty/plugins_qui/function.object.php:52:Function smarty_function_object() should return string but returns object.
-
src/QUI/Smarty/plugins_qui/function.sentence.php:24:PHPDoc tag @param has invalid value (Smarty): Unexpected token "\n *", expected variable at offset 142
-
src/QUI/Smarty/plugins_qui/function.sentence.php:24:PHPDoc tag @param has invalid value (array parameters): Unexpected token "parameters", expected variable at offset 115
-
src/QUI/Smarty/plugins_qui/function.sibling.php:24:Function smarty_function_sibling() never returns void so it can be removed from the return type.
-
src/QUI/Smarty/plugins_qui/function.sibling.php:24:PHPDoc tag @param has invalid value (Smarty): Unexpected token "\n *", expected variable at offset 183
-
src/QUI/Smarty/plugins_qui/function.sibling.php:24:PHPDoc tag @param has invalid value (array parameters): Unexpected token "parameters", expected variable at offset 156
-
src/QUI/Smarty/plugins_qui/function.template_event.php:27:Function smarty_function_template_event() never returns null so it can be removed from the return type.
-
src/QUI/Smarty/plugins_qui/function.template_event.php:93:Parameter #1 $Exception of static method QUI\System\Log::writeException() expects Exception, Throwable given.
-
src/QUI/Smarty/plugins_qui/function.text_passage.php:96:Parameter #1 $html of static method QUI\Utils\DOM::getInnerBodyFromHTML() expects string, tidy given.
-
src/QUI/Smarty/plugins_qui/function.url.php:161:Negated boolean expression is always true.
-
src/QUI/Smarty/plugins_qui/function.url.php:165:Unreachable statement - code above always terminates.
-
src/QUI/Smarty/plugins_qui_admin/function.description.php:19:PHPDoc tag @param has invalid value (Smarty): Unexpected token "\n * ", expected variable at offset 146
-
src/QUI/Smarty/plugins_qui_admin/function.explode.php:19:Function smarty_function_explode() never returns string so it can be removed from the return type.
-
src/QUI/Smarty/plugins_qui_admin/function.explode.php:19:Function smarty_function_explode() never returns void so it can be removed from the return type.
-
src/QUI/Smarty/plugins_qui_admin/function.explode.php:38:Function smarty_function_explode() should return string|void but returns array<int, string>.
-
src/QUI/Smarty/plugins_qui_admin/function.sbutton.php:19:Function smarty_function_sbutton() never returns null so it can be removed from the return type.
-
src/QUI/Smarty/plugins_qui_admin/function.sbutton.php:19:PHPDoc tag @param has invalid value (Smarty): Unexpected token "\n * ", expected variable at offset 134
-
src/QUI/Smarty/plugins_qui_admin/function.sbutton.php:35:Call to an undefined method QUI\Controls\Toolbar\Bar::create().
-
src/QUI/Smarty/plugins_qui_admin/function.title.php:19:Function smarty_function_title() never returns void so it can be removed from the return type.
von Henning Leutz bearbeitet