Skip to content

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.

  • ajax/getWallpaperSlider.php:37:Method QUI\Bricks\Controls\Slider\PromosliderWallpaper2Content::addSlide() invoked with 1 parameter, 3-6 required.
  • ajax/getWallpaperSlider.php:38:Method QUI\Bricks\Controls\Slider\PromosliderWallpaper2Content::addMobileSlide() invoked with 1 parameter, 3-5 required.
  • src/QUI/Portfolio/Controls/Reference.php:142:Call to an undefined method QUI\Interfaces\Projects\Media\File::getImages().
  • src/QUI/Portfolio/Controls/Reference.php:147:Call to an undefined method QUI\Interfaces\Projects\Site::__toString().
  • src/QUI/Portfolio/Controls/Reference.php:179:Method QUI\Portfolio\Controls\Reference::getList() should return QUI\Projects\Site but returns QUI\Interfaces\Projects\Site.
  • src/QUI/Portfolio/Controls/Reference.php:185:Method QUI\Portfolio\Controls\Reference::getList() should return QUI\Projects\Site but returns bool|QUI\Interfaces\Projects\Site.
  • src/QUI/Portfolio/Controls/Reference2022.php:178:Call to an undefined method QUI\Interfaces\Projects\Media\File::getImages().
  • src/QUI/Portfolio/Controls/Reference2022.php:183:Call to an undefined method QUI\Interfaces\Projects\Site::__toString().
  • src/QUI/Portfolio/Controls/Reference2022.php:213:Method QUI\Portfolio\Controls\Reference2022::getList() should return QUI\Projects\Site|null but returns QUI\Interfaces\Projects\Site.
  • src/QUI/Portfolio/Controls/Reference2022.php:219:Method QUI\Portfolio\Controls\Reference2022::getList() should return QUI\Projects\Site|null but returns bool|QUI\Interfaces\Projects\Site.
  • src/QUI/Portfolio/Controls/Reference2022.php:240:Comparison operation ">" between 0|0.0|''|'0'|array{}|false|null and 0 results in an error.
  • src/QUI/Portfolio/Controls/Reference2022.php:247:Comparison operation ">" between 0|0.0|''|'0'|array{}|false|null and 0 results in an error.
von Michael Danielczok bearbeitet