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/backend/addPayment.php:37:Parameter #6 $User of static method QUI\ERP\Accounting\Payments\Transactions\Factory::createPaymentTransaction() expects null, QUI\Interfaces\Users\User given.
-
ajax/backend/createSalesOrder.php:20:Call to method getUUID() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
ajax/frontend/basket/controls/basket.php:27:Parameter #2 $User of class QUI\ERP\Order\Basket\BasketOrder constructor expects QUI\Users\User|null, QUI\Interfaces\Users\User given.
-
ajax/frontend/basket/getBasket.php:25:Parameter #1 $User of method QUI\ERP\Order\Factory::createBasket() expects null, QUI\Interfaces\Users\User given.
-
ajax/frontend/basket/removePos.php:18:Using nullsafe method call on non-nullable type QUI\ERP\Products\Product\ProductList. Use -> instead.
-
ajax/frontend/basket/save.php:34:Parameter #2 $User of class QUI\ERP\Order\Basket\BasketOrder constructor expects QUI\Users\User|null, QUI\Interfaces\Users\User given.
-
ajax/frontend/order/getOrderControl.php:26:Call to an undefined method QUI\ERP\Order\AbstractOrder::getView().
-
ajax/frontend/order/getStep.php:32:Negated boolean expression is always false.
-
ajax/frontend/order/processing/savePayment.php:30:Call to an undefined method QUI\ERP\Order\Controls\AbstractOrderingStep::savePayment().
-
ajax/frontend/order/reload.php:28:Negated boolean expression is always false.
-
ajax/frontend/order/send.php:37:If condition is always true.
-
ajax/frontend/order/setQuantity.php:34:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::setQuantity().
-
src/QUI/ERP/Order/AbstractOrder.php:93:Property QUI\ERP\Order\AbstractOrder::$ShippingStatus has unknown class QUI\ERP\Shipping\ShippingStatus\Status as its type.
-
src/QUI/ERP/Order/AbstractOrder.php:93:Property QUI\ERP\Order\AbstractOrder::$ShippingStatus has unknown class QUI\ERP\Shipping\ShippingStatus\Status as its type.
-
src/QUI/ERP/Order/AbstractOrder.php:442:Parameter #1 $Shipping of method QUI\ERP\Order\AbstractOrder::validateShipping() expects QUI\ERP\Shipping\Api\ShippingInterface|null, QUI\ERP\Shipping\Types\ShippingEntry|null given.
-
src/QUI/ERP/Order/AbstractOrder.php:551:Parameter #2 $User of class QUI\ERP\Order\Basket\BasketOrder constructor expects QUI\Users\User|null, QUI\ERP\User|null given.
-
src/QUI/ERP/Order/AbstractOrder.php:677:Cannot call method getId() on QUI\ERP\Shipping\ShippingStatus\Status|true.
-
src/QUI/ERP/Order/AbstractOrder.php:683:Call to method getId() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/AbstractOrder.php:1774:Method QUI\ERP\Order\AbstractOrder::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/AbstractOrder.php:1774:Method QUI\ERP\Order\AbstractOrder::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/AbstractOrder.php:1815:Parameter $Shipping of method QUI\ERP\Order\AbstractOrder::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1815:Parameter $Shipping of method QUI\ERP\Order\AbstractOrder::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1818:Call to method getId() on an unknown class QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1835:Parameter $Shipping of method QUI\ERP\Order\AbstractOrder::validateShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1835:Parameter $Shipping of method QUI\ERP\Order\AbstractOrder::validateShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1862:Call to method setErpEntity() on an unknown class QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1865:Call to method isValid() on an unknown class QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1866:Call to method canUsedInErpEntity() on an unknown class QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:1867:Call to method canUsedBy() on an unknown class QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/AbstractOrder.php:2224:Method QUI\ERP\Order\AbstractOrder::getShippingStatus() has invalid return type QUI\ERP\Shipping\ShippingStatus\Status.
-
src/QUI/ERP/Order/AbstractOrder.php:2224:Method QUI\ERP\Order\AbstractOrder::getShippingStatus() has invalid return type QUI\ERP\Shipping\ShippingStatus\Status.
-
src/QUI/ERP/Order/AbstractOrder.php:2259:Parameter $status of method QUI\ERP\Order\AbstractOrder::setShippingStatus() has invalid type QUI\ERP\Shipping\ShippingStatus\Status.
-
src/QUI/ERP/Order/AbstractOrder.php:2259:Parameter $status of method QUI\ERP\Order\AbstractOrder::setShippingStatus() has invalid type QUI\ERP\Shipping\ShippingStatus\Status.
-
src/QUI/ERP/Order/Basket/Basket.php:238:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getUuid().
-
src/QUI/ERP/Order/Basket/Basket.php:239:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getProductSetParentUuid().
-
src/QUI/ERP/Order/Basket/Basket.php:242:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getQuantity().
-
src/QUI/ERP/Order/Basket/Basket.php:299:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getUuid().
-
src/QUI/ERP/Order/Basket/Basket.php:300:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getProductSetParentUuid().
-
src/QUI/ERP/Order/Basket/Basket.php:301:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getQuantity().
-
src/QUI/ERP/Order/Basket/Basket.php:446:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::toArticle().
-
src/QUI/ERP/Order/Basket/Basket.php:491:Class QUI\ERP\Order\Exception referenced with incorrect case: QUI\Erp\Order\Exception.
-
src/QUI/ERP/Order/Basket/BasketGuest.php:186:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getQuantity().
-
src/QUI/ERP/Order/Basket/BasketOrder.php:216:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::toArray().
-
src/QUI/ERP/Order/Basket/BasketOrder.php:220:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getQuantity().
-
src/QUI/ERP/Order/Basket/BasketOrder.php:223:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::setQuantity().
-
src/QUI/ERP/Order/Basket/BasketOrder.php:374:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::getQuantity().
-
src/QUI/ERP/Order/Basket/BasketOrder.php:461:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::toArticle().
-
src/QUI/ERP/Order/Basket/Product.php:96:Call to an undefined method QUI\ERP\Products\Interfaces\FieldInterface::getAttributesForUniqueField().
-
src/QUI/ERP/Order/Controls/Order/Order.php:93:Instanceof between null and QUI\ERP\Accounting\Invoice\InvoiceTemporary will always evaluate to false.
-
src/QUI/ERP/Order/Controls/OrderProcess/Checkout.php:64:Negated boolean expression is always false.
-
src/QUI/ERP/Order/Controls/OrderProcess/Checkout.php:257:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Order/Controls/OrderProcess/CustomerData.php:86:Negated boolean expression is always false.
-
src/QUI/ERP/Order/Controls/OrderProcess/Processing.php:69:Parameter #2 $Step of method QUI\ERP\Order\AbstractOrderProcessProvider::getDisplay() expects null, $this(QUI\ERP\Order\Controls\OrderProcess\Processing) given.
-
src/QUI/ERP/Order/EventHandling.php:391:Result of || is always true.
-
src/QUI/ERP/Order/EventHandling.php:392:Instanceof between *NEVER* and QUI\ERP\Products\Product\Types\VariantChild will always evaluate to false.
-
src/QUI/ERP/Order/EventHandling.php:407:Unreachable statement - code above always terminates.
-
src/QUI/ERP/Order/EventHandling.php:514:Parameter $SalesOrder of method QUI\ERP\Order\EventHandling::onQuiqqerSalesOrdersSaveEnd() has invalid type QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/EventHandling.php:516:Call to method getData() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/EventHandling.php:530:Call to method getData() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/EventHandling.php:556:Call to method getShipping() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/EventHandling.php:557:Call to method getShipping() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/EventHandling.php:562:Call to method getShippingStatus() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/EventHandling.php:563:Call to method getShippingStatus() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/Factory.php:82:Comparison operation "!=" between ''|'0'|array{}|false and 0 results in an error.
-
src/QUI/ERP/Order/FrontendUsers/Controls/UserOrders.php:185:Cannot call method getTitle() on QUI\ERP\Shipping\ShippingStatus\Status|true.
-
src/QUI/ERP/Order/FrontendUsers/Controls/UserOrders.php:233:Call to an undefined method QUI\ERP\Products\Interfaces\ProductTypeInterface::getImage().
-
src/QUI/ERP/Order/Mail.php:472:Parameter #1 $id of method QUI\Projects\Media::get() expects int, string given.
-
src/QUI/ERP/Order/Mail.php:540:Method QUI\Interfaces\Users\User::getAddress() invoked with 0 parameters, 1 required.
-
src/QUI/ERP/Order/Mail.php:565:Call to an undefined method QUI\ERP\Order\OrderInterface::getAttribute().
-
src/QUI/ERP/Order/Mail.php:566:Call to an undefined method QUI\ERP\Order\OrderInterface::getAttribute().
-
src/QUI/ERP/Order/Order.php:226:If condition is always true.
-
src/QUI/ERP/Order/Order.php:235:If condition is always true.
-
src/QUI/ERP/Order/Order.php:336:Method QUI\ERP\Order\Order::createSalesOrder() has invalid return type QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/Order.php:336:Method QUI\ERP\Order\Order::createSalesOrder() has invalid return type QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Order/Order.php:345:Call to static method createSalesOrder() on an unknown class QUI\ERP\SalesOrders\Handler.
-
src/QUI/ERP/Order/Order.php:578:Call to method getId() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/Order.php:579:Call to method toJSON() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/Order.php:584:Cannot call method getId() on QUI\ERP\Shipping\ShippingStatus\Status|true.
-
src/QUI/ERP/Order/OrderInProcess.php:234:Parameter #2 $User of class QUI\ERP\Order\Basket\BasketOrder constructor expects QUI\Users\User|null, QUI\ERP\User|null given.
-
src/QUI/ERP/Order/OrderInProcess.php:251:Call to an undefined method QUI\ERP\Products\Interfaces\ProductInterface::toArticle().
-
src/QUI/ERP/Order/OrderInProcess.php:644:Call to method getId() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/OrderInProcess.php:645:Call to method toArray() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/OrderInProcess.php:650:Cannot call method getId() on QUI\ERP\Shipping\ShippingStatus\Status|true.
-
src/QUI/ERP/Order/OrderInterface.php:219:Method QUI\ERP\Order\OrderInterface::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/OrderInterface.php:219:Method QUI\ERP\Order\OrderInterface::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/OrderInterface.php:226:Parameter $Shipping of method QUI\ERP\Order\OrderInterface::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/OrderInterface.php:226:Parameter $Shipping of method QUI\ERP\Order\OrderInterface::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/OrderProcess.php:781:Left side of && is always true.
-
src/QUI/ERP/Order/OrderProcess.php:1272:Class QUI\ERP\Order\Exception referenced with incorrect case: QUI\Erp\Order\Exception.
-
src/QUI/ERP/Order/OrderProcess.php:1283:Class QUI\ERP\Order\Exception referenced with incorrect case: QUI\Erp\Order\Exception.
-
src/QUI/ERP/Order/OrderProcess.php:1317:Parameter #2 $User of class QUI\ERP\Order\Basket\BasketOrder constructor expects QUI\Users\User|null, QUI\Interfaces\Users\User given.
-
src/QUI/ERP/Order/OrderProcess.php:1331:Parameter #1 $User of method QUI\ERP\Order\Factory::createBasket() expects null, QUI\Interfaces\Users\User given.
-
src/QUI/ERP/Order/OrderView.php:180:Method QUI\ERP\Order\OrderView::getShippingStatus() has invalid return type QUI\ERP\Shipping\ShippingStatus\Status.
-
src/QUI/ERP/Order/OrderView.php:180:Method QUI\ERP\Order\OrderView::getShippingStatus() has invalid return type QUI\ERP\Shipping\ShippingStatus\Status.
-
src/QUI/ERP/Order/OrderView.php:529:Parameter $Shipping of method QUI\ERP\Order\OrderView::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/OrderView.php:529:Parameter $Shipping of method QUI\ERP\Order\OrderView::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Order/OrderView.php:536:Method QUI\ERP\Order\OrderView::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/OrderView.php:536:Method QUI\ERP\Order\OrderView::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/ProcessingStatus/Factory.php:51:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Order/ProcessingStatus/Handler.php:152:Parameter #2 $key of method QUI\Config::del() expects string|null, int given.
-
src/QUI/ERP/Order/ProcessingStatus/Handler.php:171:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Order/ProcessingStatus/Handler.php:216:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Order/Search.php:530:Result of closure (void) is used.
-
src/QUI/ERP/Order/Search.php:608:Cannot call method getId() on QUI\ERP\Shipping\ShippingStatus\Status|true.
-
src/QUI/ERP/Order/Search.php:609:Cannot call method getTitle() on QUI\ERP\Shipping\ShippingStatus\Status|true.
-
src/QUI/ERP/Order/Search.php:610:Cannot call method getColor() on QUI\ERP\Shipping\ShippingStatus\Status|true.
-
src/QUI/ERP/Order/Utils/DataLayer.php:112:Call to method getPrice() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Order/Utils/Utils.php:427:Empty array passed to foreach.
-
types/shoppingCart.php:51:Class QUI\Database\Exception referenced with incorrect case: QUI\DataBase\Exception.