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 ajax/backend/OpenItemsList/getUserOpenItems.php
------ -------------------------------------------------
44 Variable $openItems might not be defined.
67 Variable $openItems might not be defined.
------ -------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------------
Line src/QUI/ERP/Customer/CustomerFiles.php
------ -----------------------------------------------------------------------------------------------------------------------
403 Call to static method getDownloadEntryById() on an unknown class QUI\UserDownloads\Handler.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
414 Method QUI\ERP\Customer\CustomerFiles::createDownloadEntry() has invalid return type QUI\UserDownloads\DownloadEntry.
427 Instantiated class QUI\UserDownloads\DownloadEntry not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
438 Call to static method addDownloadEntry() on an unknown class QUI\UserDownloads\Handler.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
443 Call to static method getDownloadEntryById() on an unknown class QUI\UserDownloads\Handler.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ -----------------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------
Line src/QUI/ERP/Customer/OpenItemsList/Handler.php
------ --------------------------------------------------------------
493 Variable $whereOr in empty() always exists and is not falsy.
------ --------------------------------------------------------------
[ERROR] Found 8 errors