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/invoices/addPayment.php:37:Parameter #6 $User of static method QUI\ERP\Accounting\Payments\Transactions\Factory::createPaymentTransaction() expects null, QUI\Interfaces\Users\User given.
-
ajax/invoices/temporary/calc.php:36:Parameter #1 $Calc of method QUI\ERP\Accounting\ArticleList::calc() expects null, QUI\ERP\Accounting\Calc given.
-
src/QUI/ERP/Accounting/Invoice/EventHandler.php:489:Call to static method getInstance() on an unknown class QUI\ERP\Order\Handler.
-
src/QUI/ERP/Accounting/Invoice/Factory.php:31:PHPDoc tag @throws has invalid value (): Unexpected token "\n ", expected type at offset 212
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:104:Property QUI\ERP\Accounting\Invoice\Invoice::$Shipping has unknown class QUI\ERP\Shipping\Api\ShippingInterface as its type.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:104:Property QUI\ERP\Accounting\Invoice\Invoice::$Shipping has unknown class QUI\ERP\Shipping\Api\ShippingInterface as its type.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:176:Property QUI\ERP\Accounting\Invoice\Invoice::$Shipping (QUI\ERP\Shipping\Api\ShippingInterface|null) does not accept QUI\ERP\Shipping\Types\ShippingUnique.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:176:Property QUI\ERP\Accounting\Invoice\Invoice::$Shipping (QUI\ERP\Shipping\Api\ShippingInterface|null) does not accept QUI\ERP\Shipping\Types\ShippingUnique.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:434:PHPDoc tag @throws has invalid value (): Unexpected token "\n ", expected type at offset 174
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:550:Method QUI\ERP\Accounting\Invoice\Invoice::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingUnique.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:550:Method QUI\ERP\Accounting\Invoice\Invoice::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingUnique.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:552:Method QUI\ERP\Accounting\Invoice\Invoice::getShipping() should return int|QUI\ERP\Shipping\Types\ShippingUnique|null but returns QUI\ERP\Shipping\Api\ShippingInterface|null.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:552:Method QUI\ERP\Accounting\Invoice\Invoice::getShipping() should return int|QUI\ERP\Shipping\Types\ShippingUnique|null but returns QUI\ERP\Shipping\Api\ShippingInterface|null.
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:902:PHPDoc tag @param references unknown parameter: $globalProcessId
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:1455:PHPDoc tag @throws has invalid value (): Unexpected token "\n ", expected type at offset 86
-
src/QUI/ERP/Accounting/Invoice/Invoice.php:1856:Class QUI\Database\Exception referenced with incorrect case: QUI\DataBase\Exception.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:915:Call to method getId() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:916:Call to method toJSON() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:971:Call to static method getInstance() on an unknown class QUI\ERP\Order\Handler.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:1347:Call to method getId() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:1348:Call to method toJSON() on an unknown class QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:1882:PHPDoc tag @throws has invalid value (): Unexpected token "\n ", expected type at offset 86
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:2383:Method QUI\ERP\Accounting\Invoice\InvoiceTemporary::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:2383:Method QUI\ERP\Accounting\Invoice\InvoiceTemporary::getShipping() has invalid return type QUI\ERP\Shipping\Types\ShippingEntry.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:2409:Parameter $Shipping of method QUI\ERP\Accounting\Invoice\InvoiceTemporary::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:2409:Parameter $Shipping of method QUI\ERP\Accounting\Invoice\InvoiceTemporary::setShipping() has invalid type QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php:2411:Call to method getId() on an unknown class QUI\ERP\Shipping\Api\ShippingInterface.
-
src/QUI/ERP/Accounting/Invoice/InvoiceView.php:47:Unreachable statement - code above always terminates.
-
src/QUI/ERP/Accounting/Invoice/InvoiceView.php:311:Else branch is unreachable because previous condition is always true.
-
src/QUI/ERP/Accounting/Invoice/Output/OutputProviderInvoice.php:171:Call to an undefined method QUI\ERP\Accounting\ArticleListUnique::setUser().
-
src/QUI/ERP/Accounting/Invoice/Output/OutputProviderInvoice.php:172:Call to an undefined method QUI\ERP\Accounting\ArticleListUnique::toUniqueList().
-
src/QUI/ERP/Accounting/Invoice/Output/OutputProviderInvoice.php:209:Call to static method getInstance() on an unknown class QUI\ERP\Order\Handler.
-
src/QUI/ERP/Accounting/Invoice/ProcessingStatus/Factory.php:57:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Accounting/Invoice/ProcessingStatus/Handler.php:124:Parameter #2 $key of method QUI\Config::del() expects string|null, int given.
-
src/QUI/ERP/Accounting/Invoice/ProcessingStatus/Handler.php:180:Parameter #2 $key of method QUI\Config::setValue() expects string|null, int given.
-
src/QUI/ERP/Accounting/Invoice/Search/InvoiceSearch.php:420:Parameter #1 $haystack of function str_starts_with expects string, int given.
-
src/QUI/ERP/Accounting/Invoice/Search/InvoiceSearch.php:421:Parameter #1 $string of function strlen expects string, int given.
-
src/QUI/ERP/Accounting/Invoice/Search/InvoiceSearch.php:421:Parameter #1 $string of function substr_replace expects array|string, int given.
-
src/QUI/ERP/Accounting/Invoice/Search/InvoiceSearch.php:692:Call to static method getInstance() on an unknown class QUI\ERP\Order\Handler.
-
src/QUI/ERP/Accounting/Invoice/Search/InvoiceSearch.php:776:Expression on left side of ?? is not nullable.
-
src/QUI/ERP/Accounting/Invoice/Utils/Invoice.php:452:Result of && is always false.
-
src/QUI/ERP/Accounting/Invoice/Utils/Invoice.php:542:Result of || is always true.