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/rules/getRules.php:33:Parameter #2 $callback of function usort expects callable(array, array): int, Closure(mixed, mixed): bool given.
-
ajax/backend/rules/update.php:25:Call to an undefined method QUI\ERP\Shipping\Api\AbstractShippingEntry::setTitle().
-
ajax/backend/rules/update.php:29:Call to an undefined method QUI\ERP\Shipping\Api\AbstractShippingEntry::setWorkingTitle().
-
src/QUI/ERP/Shipping/Api/AbstractShippingEntry.php:149:Parameter $Invoice of method QUI\ERP\Shipping\Api\AbstractShippingEntry::getInvoiceInformationText() has invalid type QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Shipping/Api/AbstractShippingEntry.php:149:Parameter $Invoice of method QUI\ERP\Shipping\Api\AbstractShippingEntry::getInvoiceInformationText() has invalid type QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Shipping/Api/AbstractShippingEntry.php:149:Parameter $Invoice of method QUI\ERP\Shipping\Api\AbstractShippingEntry::getInvoiceInformationText() has invalid type QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/Api/AbstractShippingEntry.php:149:Parameter $Invoice of method QUI\ERP\Shipping\Api\AbstractShippingEntry::getInvoiceInformationText() has invalid type QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/Api/AbstractShippingEntry.php:149:Parameter $Invoice of method QUI\ERP\Shipping\Api\AbstractShippingEntry::getInvoiceInformationText() has invalid type QUI\ERP\Accounting\Invoice\InvoiceView.
-
src/QUI/ERP/Shipping/Api/AbstractShippingEntry.php:149:Parameter $Invoice of method QUI\ERP\Shipping\Api\AbstractShippingEntry::getInvoiceInformationText() has invalid type QUI\ERP\Accounting\Invoice\InvoiceView.
-
src/QUI/ERP/Shipping/EventHandler.php:252:Negated boolean expression is always false.
-
src/QUI/ERP/Shipping/EventHandler.php:273:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Shipping/EventHandler.php:296:Negated boolean expression is always false.
-
src/QUI/ERP/Shipping/EventHandler.php:317:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Shipping/EventHandler.php:355:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Shipping/EventHandler.php:363:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Shipping/EventHandler.php:372:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Shipping/EventHandler.php:492:Offset 'standard' on array{title: array{de: 'Lieferzeit', en: 'Delivery time'}, type: 'shipping…', public: true, standard: true} in empty() always exists and is not falsy.
-
src/QUI/ERP/Shipping/EventHandler.php:493:Offset 'public' on array{title: array{de: 'Lieferzeit', en: 'Delivery time'}, type: 'shipping…', public: true, standard: true} in empty() always exists and is not falsy.
-
src/QUI/ERP/Shipping/EventHandler.php:494:Offset 'options' does not exist on array{title: array{de: 'Lieferzeit', en: 'Delivery time'}, type: 'shipping…', public: true, standard: true}.
-
src/QUI/ERP/Shipping/EventHandler.php:494:Offset 'options' on array{title: array{de: 'Lieferzeit', en: 'Delivery time'}, type: 'shipping…', public: true, standard: true} in empty() does not exist.
-
src/QUI/ERP/Shipping/EventHandler.php:562:Parameter $TemporaryInvoice of method QUI\ERP\Shipping\EventHandler::onQuiqqerInvoiceTemporaryInvoiceCreated() has invalid type QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/EventHandler.php:562:Parameter $TemporaryInvoice of method QUI\ERP\Shipping\EventHandler::onQuiqqerInvoiceTemporaryInvoiceCreated() has invalid type QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/EventHandler.php:564:Call to method getCustomDataEntry() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/EventHandler.php:569:Call to method getGlobalProcessId() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/EventHandler.php:574:Call to method getArticles() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/EventHandler.php:575:Call to method addCustomDataEntry() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/EventHandler.php:576:Call to method update() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Shipping/EventHandler.php:589:Parameter $Offer of method QUI\ERP\Shipping\EventHandler::onQuiqqerOffersCreated() has invalid type QUI\ERP\Accounting\Offers\AbstractOffer.
-
src/QUI/ERP/Shipping/EventHandler.php:589:Parameter $Offer of method QUI\ERP\Shipping\EventHandler::onQuiqqerOffersCreated() has invalid type QUI\ERP\Accounting\Offers\AbstractOffer.
-
src/QUI/ERP/Shipping/EventHandler.php:591:Call to method getCustomDataEntry() on an unknown class QUI\ERP\Accounting\Offers\AbstractOffer.
-
src/QUI/ERP/Shipping/EventHandler.php:596:Call to method getGlobalProcessId() on an unknown class QUI\ERP\Accounting\Offers\AbstractOffer.
-
src/QUI/ERP/Shipping/EventHandler.php:601:Call to method getArticles() on an unknown class QUI\ERP\Accounting\Offers\AbstractOffer.
-
src/QUI/ERP/Shipping/EventHandler.php:602:Call to method addCustomDataEntry() on an unknown class QUI\ERP\Accounting\Offers\AbstractOffer.
-
src/QUI/ERP/Shipping/EventHandler.php:603:Call to method update() on an unknown class QUI\ERP\Accounting\Offers\AbstractOffer.
-
src/QUI/ERP/Shipping/EventHandler.php:616:Parameter $Sales of method QUI\ERP\Shipping\EventHandler::onQuiqqerSalesOrdersCreated() has invalid type QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Shipping/EventHandler.php:616:Parameter $Sales of method QUI\ERP\Shipping\EventHandler::onQuiqqerSalesOrdersCreated() has invalid type QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Shipping/EventHandler.php:619:Call to method getGlobalProcessId() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Shipping/EventHandler.php:624:Call to method getArticles() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Shipping/EventHandler.php:625:Call to method update() on an unknown class QUI\ERP\SalesOrders\SalesOrder.
-
src/QUI/ERP/Shipping/EventHandler.php:811:Parameter #1 $Locale of method QUI\ERP\Shipping\Types\ShippingEntry::toPriceFactor() expects null, QUI\Locale given.
-
src/QUI/ERP/Shipping/Methods/Digital/ShippingType.php:74:Negated boolean expression is always false.
-
src/QUI/ERP/Shipping/Methods/Standard/ShippingType.php:87:Negated boolean expression is always false.
-
src/QUI/ERP/Shipping/Order/Shipping.php:169:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Shipping/Order/Shipping.php:268:Call to an undefined method QUI\ERP\Order\AbstractOrder::save().
-
src/QUI/ERP/Shipping/Products/Fields/ShippingTimeFrontendView.php:34:Variable $Field in PHPDoc tag @var does not match assigned variable $value.
-
src/QUI/ERP/Shipping/Products/Fields/ShippingTimeFrontendView.php:125:Method QUI\ERP\Shipping\Products\Fields\ShippingTimeFrontendView::getValue() should return array|string but returns null.
-
src/QUI/ERP/Shipping/Products/Fields/ShippingTimePeriod.php:138:Return type (QUI\ERP\Shipping\Products\Fields\ShippingTimeFrontendView) of method QUI\ERP\Shipping\Products\Fields\ShippingTimePeriod::getFrontendView() should be compatible with return type (QUI\ERP\Products\Field\Types\UnitSelectFrontendView) of method QUI\ERP\Products\Field\Types\TimePeriod::getFrontendView()
-
src/QUI/ERP/Shipping/Rules/Factory.php:232:Method QUI\ERP\Shipping\Rules\Factory::createChild() should return QUI\ERP\Shipping\Rules\ShippingRule but returns QUI\CRUD\Child.
-
src/QUI/ERP/Shipping/Rules/Factory.php:296:Method QUI\ERP\Shipping\Rules\Factory::getChild() should return QUI\ERP\Shipping\Api\AbstractShippingEntry but returns QUI\CRUD\Child.
-
src/QUI/ERP/Shipping/Rules/ShippingRule.php:647:Call to an undefined method QUI\ERP\ErpEntityInterface::count().
-
src/QUI/ERP/Shipping/Rules/ShippingRule.php:681:Parameter #1 $precision of method QUI\ERP\Accounting\CalculationValue::precision() expects bool, int given.
-
src/QUI/ERP/Shipping/ShippingStatus/Factory.php:52:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Shipping/ShippingStatus/Handler.php:149:Parameter #2 $key of method QUI\Config::del() expects string|null, int given.
-
src/QUI/ERP/Shipping/ShippingStatus/Handler.php:171:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Shipping/ShippingStatus/Handler.php:219:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Shipping/Tracking/Tracking.php:133:Parameter #2 $callback of function array_filter expects (callable(mixed): bool)|null, Closure(mixed): int given.
-
src/QUI/ERP/Shipping/Types/Factory.php:72:Call to an undefined method QUI\CRUD\Child::getShippingType().
-
src/QUI/ERP/Shipping/Types/Factory.php:77:Call to an undefined method QUI\CRUD\Child::getShippingType().
-
src/QUI/ERP/Shipping/Types/Factory.php:91:Method QUI\ERP\Shipping\Types\Factory::createChild() should return QUI\ERP\Shipping\Types\ShippingEntry but returns QUI\CRUD\Child.
-
src/QUI/ERP/Shipping/Types/Factory.php:142:Method QUI\ERP\Shipping\Types\Factory::getChild() should return QUI\ERP\Shipping\Types\ShippingEntry but returns QUI\CRUD\Child.
-
src/QUI/ERP/Shipping/Types/ShippingEntry.php:612:Parameter #1 $Rule of method QUI\ERP\Shipping\Types\ShippingEntry::addShippingRule() expects QUI\ERP\Shipping\Rules\ShippingRule, QUI\ERP\Shipping\Api\AbstractShippingEntry given.
-
src/QUI/ERP/Shipping/Types/ShippingEntry.php:648:Call to an undefined method QUI\ERP\Shipping\Api\AbstractShippingEntry::getPriority().
-
src/QUI/ERP/Shipping/Types/ShippingEntry.php:649:Call to an undefined method QUI\ERP\Shipping\Api\AbstractShippingEntry::getPriority().
-
src/QUI/ERP/Shipping/Types/ShippingEntry.php:665:Call to an undefined method QUI\ERP\Shipping\Api\AbstractShippingEntry::isValid().
-
src/QUI/ERP/Shipping/Types/ShippingEntry.php:683:Call to an undefined method QUI\ERP\Shipping\Api\AbstractShippingEntry::canUsedIn().
-
src/QUI/ERP/Shipping/Types/ShippingEntry.php:714:Call to an undefined method QUI\ERP\Shipping\Api\AbstractShippingEntry::noRulesAfter().
-
src/QUI/ERP/Shipping/Types/ShippingEntry.php:730:Method QUI\ERP\Shipping\Types\ShippingEntry::getShippingRules() should return array<QUI\ERP\Shipping\Rules\ShippingRule> but returns array<int<0, max>, QUI\ERP\Shipping\Api\AbstractShippingEntry>.