PHPStan Level 1 Errors
Wie gemeinsam besprochen, sollen in allen wichtigen QUIQQER Paketen die PHPStan Fehler bis inklusive Level 1 behoben werden.
In diesem Paket gibt es die folgenden Errors:
------ -----------------------------------------------------------------------------------------------------------------------------
Line src/QUI/ERP/Accounting/ArticleListUnique.php
------ -----------------------------------------------------------------------------------------------------------------------------
461 Class QUI\ERP\CryptoCurrency\Currency not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
482 Class QUI\ERP\CryptoCurrency\Currency not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
605 Return type mixed of method QUI\ERP\Accounting\ArticleListUnique::getIterator() is not covariant with tentative return type
Traversable of method IteratorAggregate::getIterator().
💡 Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.
------ -----------------------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------
Line src/QUI/ERP/EventHandler.php
------ ------------------------------------------------------------
56 Variable $areas in empty() always exists and is not falsy.
248 Variable $vatId in empty() always exists and is not falsy.
------ ------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------
Line src/QUI/ERP/Process.php
------ ---------------------------------------------------------------------------------------------------------------
496 Access to constant BOOKINGS on an unknown class QUI\ERP\Booking\Table.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
507 Instantiated class QUI\ERP\Booking\Repository\BookingRepository not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
574 Call to static method getTablePurchasingProcesses() on an unknown class QUI\ERP\Purchasing\Processes\Handler.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
588 Call to static method getPurchasingProcess() on an unknown class QUI\ERP\Purchasing\Processes\Handler.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------
Line src/QUI/ERP/Processes.php
------ ---------------------------------------------------------------------------------------------------------------
312 Call to static method getTablePurchasingProcesses() on an unknown class QUI\ERP\Purchasing\Processes\Handler.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
349 Access to constant BOOKINGS on an unknown class QUI\ERP\Booking\Table.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------------------------------------------------
[ERROR] Found 11 errors