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/FrontendUsers/Console/AnonymiseUsers.php
------ ------------------------------------------------------------
116 Variable $where in empty() always exists and is not falsy.
120 Variable $orderBy in empty() is never defined.
121 Undefined variable: $orderBy
------ ------------------------------------------------------------
------ -----------------------------------------------------
Line src/QUI/FrontendUsers/Controls/Profile/UserData.php
------ -----------------------------------------------------
159 Anonymous function has an unused use $settings.
------ -----------------------------------------------------
------ ---------------------------------------------------------------------
Line src/QUI/FrontendUsers/Controls/RegistrationSignUp.php
------ ---------------------------------------------------------------------
85 Class QUI\Registration\Trial\Registrar not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
137 Class QUI\Registration\Trial\Registrar not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------------------------------
Line src/QUI/FrontendUsers/Registrars/Email/Registrar.php
------ ------------------------------------------------------------------------------------------------------------------------------------
211 Method QUI\FrontendUsers\Registrars\Email\Registrar::validate() should return array<QUI\FrontendUsers\InvalidFormField> but return
statement is missing.
------ ------------------------------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------
Line src/QUI/FrontendUsers/Rest/RegistrationData.php
------ -----------------------------------------------------------------------------------
87 Unsafe usage of new static().
parameters:
parameters:
💡 See: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
------ -----------------------------------------------------------------------------------