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/Bricks/Brick.php:55:Property QUI\Bricks\Brick::$uniqueId (string) does not accept default value of type false.
- src/QUI/Bricks/Controls/Slider/BasicSlider.php:76:Call to an undefined method QUI\Interfaces\Projects\Media\File::getImages().
- src/QUI/Bricks/Manager.php:175:Method QUI\Bricks\Manager::createBrickForProject() should return int but returns string|false.
- src/QUI/Bricks/Manager.php:193:Parameter #2 (closed) $Site of method QUI\Bricks\Manager::createUniqueBrickId() expects QUI\Projects\Site, QUI\Interfaces\Projects\Site given.
- src/QUI/Bricks/Manager.php:196:Parameter #2 (closed) $Site of method QUI\Bricks\Manager::createUniqueBrickId() expects QUI\Projects\Site, QUI\Interfaces\Projects\Site given.
- src/QUI/Bricks/Manager.php:663:Parameter #1 (closed) $Setting of method QUI\Bricks\Manager::parseSettingToBrickArray() expects DOMElement, DOMNode given.
- src/QUI/Bricks/Manager.php:667:Parameter #1 (closed) $Setting of method QUI\Bricks\Manager::parseSettingToBrickArray() expects DOMElement, DOMNode given.
- src/QUI/Bricks/Manager.php:1032:Parameter #2 (closed) $code of class QUI\Exception constructor expects int, string given.
- src/QUI/Bricks/Manager.php:1168:Method QUI\Bricks\Manager::copyBrick() should return int but returns string|false.
- src/QUI/Bricks/Manager.php:1337:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Manager.php:1338:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Utils.php:57:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Utils.php:61:Parameter #1 (closed) $Brick of static method QUI\Bricks\Utils::parseAreaToArray() expects DOMElement, DOMNode given.
- src/QUI/Bricks/Utils.php:113:Parameter #1 (closed) $Brick of static method QUI\Bricks\Utils::parseAreaToArray() expects DOMElement, DOMNode given.
- src/QUI/Bricks/Utils.php:119:Parameter #1 (closed) $Brick of static method QUI\Bricks\Utils::parseAreaToArray() expects DOMElement, DOMNode given.
- src/QUI/Bricks/Utils.php:125:Parameter #1 (closed) $Brick of static method QUI\Bricks\Utils::parseAreaToArray() expects DOMElement, DOMNode given.
- src/QUI/Bricks/Utils.php:190:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Utils.php:191:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Utils.php:197:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Utils.php:198:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Utils.php:328:Call to an undefined method DOMNode::getAttribute().
- src/QUI/Bricks/Utils.php:343:Call to an undefined method DOMNode::getAttribute().