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/calcBruttoPrice.php:32:Elseif branch is unreachable because previous condition is always true.
-
ajax/calcBruttoPrice.php:32:Instanceof between *NEVER* and QUI\ERP\Tax\TaxEntry will always evaluate to false.
-
ajax/calcBruttoPrice.php:34:Else branch is unreachable because previous condition is always true.
-
ajax/calcNettoPrice.php:42:Elseif branch is unreachable because previous condition is always true.
-
ajax/calcNettoPrice.php:42:Instanceof between *NEVER* and QUI\ERP\Tax\TaxEntry will always evaluate to false.
-
ajax/calcNettoPrice.php:44:Else branch is unreachable because previous condition is always true.
-
ajax/calcNettoPrice.php:63:Parameter #2 $string of function explode expects string, float given.
-
ajax/calcNettoPrice.php:75:Parameter #1 $string of function substr expects string, float given.
-
ajax/calcNettoPrice.php:76:Binary operation "*" between string and (float|int) results in an error.
-
ajax/customerFiles/getFiles.php:19:Method QUI\ERP\ErpEntityInterface::getCustomerFiles() invoked with 1 parameter, 0 required.
-
ajax/output/sendMail.php:76:Parameter #9 $attachedMediaFiles of static method QUI\ERP\Output\Output::sendPdfViaMail() expects array<QUI\Projects\Media\File|QUI\Projects\Media\Image>, array<int<0, max>, QUI\Interfaces\Projects\Media\File> given.
-
src/QUI/ERP/Accounting/Calc.php:402:Offset 0 on array<string, string> in isset() does not exist.
-
src/QUI/ERP/Accounting/Calc.php:406:Offset 0 on array<string, mixed> in isset() does not exist.
-
src/QUI/ERP/Accounting/Calc.php:754:Parameter $Invoice of method QUI\ERP\Accounting\Calc::calculateInvoicePayments() has invalid type QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Accounting/Calc.php:754:Parameter $Invoice of method QUI\ERP\Accounting\Calc::calculateInvoicePayments() has invalid type QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Accounting/Calc.php:954:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Invoice\Handler.
-
src/QUI/ERP/Manufacturers.php:162:Strict comparison using === between mixed and '' will always evaluate to false.
-
src/QUI/ERP/Manufacturers.php:166:Strict comparison using === between mixed and '' will always evaluate to false.
-
src/QUI/ERP/Manufacturers.php:186:Parameter #1 $code of method QUI\Interfaces\Users\User::activate() expects string, false given.
-
src/QUI/ERP/Output/Output.php:133:Method QUI\ERP\Output\Output::getDocumentPdf() has invalid return type QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Output/Output.php:133:Method QUI\ERP\Output\Output::getDocumentPdf() has invalid return type QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Output/Output.php:216:Call to method createPDF() on an unknown class QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Output/OutputTemplate.php:169:Method QUI\ERP\Output\OutputTemplate::getPDFDocument() has invalid return type QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Output/OutputTemplate.php:169:Method QUI\ERP\Output\OutputTemplate::getPDFDocument() has invalid return type QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Output/OutputTemplate.php:174:Instantiated class QUI\HtmlToPdf\Document not found.
-
src/QUI/ERP/Output/OutputTemplate.php:192:Call to method setHeaderHTML() on an unknown class QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Output/OutputTemplate.php:193:Call to method setContentHTML() on an unknown class QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Output/OutputTemplate.php:194:Call to method setFooterHTML() on an unknown class QUI\HtmlToPdf\Document.
-
src/QUI/ERP/Process.php:149:Call to static method getSalesOrder() on an unknown class QUI\ERP\SalesOrders\Handler.
-
src/QUI/ERP/Process.php:336:Call to method getPrefixedNumber() on an unknown class QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Process.php:336:Call to method getPrefixedNumber() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Process.php:338:Call to method getAttribute() on an unknown class QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Process.php:338:Call to method getAttribute() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Process.php:342:Call to method getUUID() on an unknown class QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Process.php:342:Call to method getUUID() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Process.php:345:Call to method getHistory() on an unknown class QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Process.php:345:Call to method getHistory() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Process.php:362:Call to method getUUID() on an unknown class QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Process.php:362:Call to method getUUID() on an unknown class QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Process.php:378:Class QUI\ERP\Accounting\Invoice\Invoice not found.
-
src/QUI/ERP/Process.php:396:Class QUI\ERP\Accounting\Invoice\InvoiceTemporary not found.
-
src/QUI/ERP/Process.php:407:Method QUI\ERP\Process::getInvoices() has invalid return type QUI\ERP\Accounting\Invoice\Invoice.
-
src/QUI/ERP/Process.php:407:Method QUI\ERP\Process::getInvoices() has invalid return type QUI\ERP\Accounting\Invoice\InvoiceTemporary.
-
src/QUI/ERP/Process.php:414:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Invoice\Handler.
-
src/QUI/ERP/Process.php:544:Call to method getHash() on an unknown class QUI\ERP\Accounting\Offers\Offer.
-
src/QUI/ERP/Process.php:546:Call to method getAttribute() on an unknown class QUI\ERP\Accounting\Offers\Offer.
-
src/QUI/ERP/Process.php:550:Call to method getHash() on an unknown class QUI\ERP\Accounting\Offers\Offer.
-
src/QUI/ERP/Process.php:553:Call to method getHistory() on an unknown class QUI\ERP\Accounting\Offers\Offer.
-
src/QUI/ERP/Process.php:570:Call to method getHash() on an unknown class QUI\ERP\Accounting\Offers\Offer.
-
src/QUI/ERP/Process.php:579:Method QUI\ERP\Process::getOffers() has invalid return type QUI\ERP\Accounting\Offers\Offer.
-
src/QUI/ERP/Process.php:588:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Offers\Handler.
-
src/QUI/ERP/Process.php:599:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Offers\Handler.
-
src/QUI/ERP/Process.php:612:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Offers\Handler.
-
src/QUI/ERP/Process.php:858:Call to static method getTableSalesOrders() on an unknown class QUI\ERP\SalesOrders\Handler.
-
src/QUI/ERP/Process.php:872:Call to static method getSalesOrder() on an unknown class QUI\ERP\SalesOrders\Handler.
-
src/QUI/ERP/Processes.php:46:Dead catch - Exception is never thrown in the try block.
-
src/QUI/ERP/Processes.php:52:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Contracts\Handler.
-
src/QUI/ERP/Processes.php:60:Dead catch - Exception is never thrown in the try block.
-
src/QUI/ERP/Processes.php:66:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Invoice\Handler.
-
src/QUI/ERP/Processes.php:73:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Offers\Handler.
-
src/QUI/ERP/Processes.php:87:Call to static method getPurchasingProcess() on an unknown class QUI\ERP\Purchasing\Processes\Handler.
-
src/QUI/ERP/Processes.php:92:Call to static method getPurchasingProcessDraft() on an unknown class QUI\ERP\Purchasing\Processes\Handler.
-
src/QUI/ERP/Processes.php:99:Call to static method getSalesOrderByHash() on an unknown class QUI\ERP\SalesOrders\Handler.
-
src/QUI/ERP/Processes.php:202:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Invoice\Handler.
-
src/QUI/ERP/Processes.php:276:Call to static method getInstance() on an unknown class QUI\ERP\Accounting\Offers\Handler.
-
src/QUI/ERP/Processes.php:313:Call to static method getTableSalesOrders() on an unknown class QUI\ERP\SalesOrders\Handler.
-
src/QUI/ERP/Utils/Process.php:46:Call to static method getInvoiceByString() on an unknown class QUI\ERP\Accounting\Invoice\Utils\Invoice.