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 auf dem dev
-Branch:
PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /opt/homebrew/var/www/quiqqer-cc/packages/quiqqer/utils/src/QUI/Utils/Text/Word.php on line 82
------ ---------------------------------------------------------------------------------------------------------------------
Line QUI/Collection.php
------ ---------------------------------------------------------------------------------------------------------------------
393 Return type mixed of method QUI\Collection::offsetGet() is not covariant with tentative return type mixed of method
ArrayAccess::offsetGet().
💡 Make it covariant, or use the #[\ReturnTypeWillChange] attribute to temporarily suppress the error.
------ ---------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------
Line QUI/Database/DB.php
------ -------------------------------------------------------------
334 Variable $params in empty() always exists and is not falsy.
------ -------------------------------------------------------------
------ --------------------------------------------------------
Line QUI/Database/Tables.php
------ --------------------------------------------------------
907 Variable $i in empty() always exists and is not falsy.
------ --------------------------------------------------------
------ -----------------------------------------------------------------------------
Line QUI/Utils/Image.php
------ -----------------------------------------------------------------------------
16 Variable $im_console might not be defined.
188 Function imagegif invoked with 3 parameters, 1-2 required.
382 Variable $old_image might not be defined.
383 Variable $old_image might not be defined.
385 Variable $wasserzeichen might not be defined.
386 Variable $wasserzeichen might not be defined.
392 Variable $old_image might not be defined.
397 Variable $wasserzeichen might not be defined.
425 Variable $old_image might not be defined.
456 Variable $img might not be defined.
457 Variable $img might not be defined.
459 Variable $img might not be defined.
460 Variable $img might not be defined.
465 Variable $img might not be defined.
469 Variable $img might not be defined.
469 Variable $img might not be defined.
474 Variable $img might not be defined.
475 Variable $img might not be defined.
476 Variable $img might not be defined.
477 Variable $img might not be defined.
545 Access to constant COMPOSITE_OVER on an unknown class QUI\Utils\imagick.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
610 Constant PT_PATH not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
647 Access to constant COMPOSITE_DSTOUT on an unknown class QUI\Utils\imagick.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
655 Instantiated class QUI\Utils\Imagick not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
660 Instantiated class QUI\Utils\ImagickPixel not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
662 Access to constant COMPOSITE_SRCOVER on an unknown class QUI\Utils\imagick.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
665 Access to constant COMPOSITE_SRCOVER on an unknown class QUI\Utils\imagick.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ -----------------------------------------------------------------------------
------ ------------------------------------
Line QUI/Utils/Request/Url.php
------ ------------------------------------
181 Variable $mr might not be defined.
------ ------------------------------------
------ -----------------------------------------------------------------
Line QUI/Utils/System/Webserver.php
------ -----------------------------------------------------------------
91 Variable $_SERVER in isset() always exists and is not nullable.
------ -----------------------------------------------------------------
[ERROR] Found 32 errors