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 admin/ajax/project/create.php
------ ------------------------------------------------------------------
31 Variable $template in isset() always exists and is not nullable.
------ ------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line lib/QUI/Cache/QuiqqerMongoDriver.php
------ ---------------------------------------------------------------------
93 Class MongoDB\Collection not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
125 Class MongoDB\Collection not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
139 Class MongoDB\Collection not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
163 Class MongoDB\Client not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------
------ ----------------------------------------------------------------
Line lib/QUI/Groups/Group.php
------ ----------------------------------------------------------------
395 Variable $result in isset() always exists and is not nullable.
------ ----------------------------------------------------------------
------ ---------------------------------------------------------------------
Line lib/QUI/Mail.php
------ ---------------------------------------------------------------------
65 Property QUI\Mail::$Mail has unknown class PHPMailer as its type.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
143 Instantiated class PHPMailer not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------
------ ---------------------------------------
Line lib/QUI/Projects/Media/Utils.php
------ ---------------------------------------
522 Variable $Image might not be defined.
------ ---------------------------------------
------ ---------------------------------------------------------------------------------------------------
Line lib/QUI/Projects/Project.php
------ ---------------------------------------------------------------------------------------------------
1241 Cannot unset offset 'count' on array{select: 'id', from: string, where: mixed, where_or?: mixed}.
1280 Variable $setupOptions in isset() always exists and is not nullable.
------ ---------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line lib/QUI/Projects/Site.php
------ ---------------------------------------------------------------------
1776 Variable $eventResult in empty() always exists and is always falsy.
------ ---------------------------------------------------------------------
------ --------------------------------------------------------------
Line lib/QUI/Projects/Site/Utils.php
------ --------------------------------------------------------------
58 Variable $name in isset() always exists and is not nullable.
------ --------------------------------------------------------------
------ --------------------------------------------------------------
Line lib/QUI/Rewrite.php
------ --------------------------------------------------------------
1301 Variable $path in isset() always exists and is not nullable.
------ --------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------
Line lib/QUI/Security.php
------ ------------------------------------------------------------------------------------------------------
39 Class Blowfish\Blowfish does not have a constructor and must be instantiated without any parameters.
58 Class Blowfish\Blowfish does not have a constructor and must be instantiated without any parameters.
------ ------------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------
Line lib/QUI/Session.php
------ ---------------------------------------------------------------------------------------------------------------
339 Instantiated class Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcacheSessionHandler not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------------------------------------------------
------ ----------------------------------------------------
Line lib/QUI/System/Console/Tools/CopyLanguageSites.php
------ ----------------------------------------------------
149 Variable $SourceProject might not be defined.
182 Variable $TargetProject might not be defined.
211 Variable $SourceProject might not be defined.
213 Variable $SourceProject might not be defined.
213 Variable $TargetProject might not be defined.
219 Variable $SourceProject might not be defined.
220 Variable $TargetProject might not be defined.
------ ----------------------------------------------------
------ ----------------------------------------------------
Line lib/QUI/System/Console/Tools/GetSiteAttributes.php
------ ----------------------------------------------------
60 Variable $Project might not be defined.
129 Variable $Project might not be defined.
------ ----------------------------------------------------
------ --------------------------------------------------------
Line lib/QUI/System/Console/Tools/Permissions.php
------ --------------------------------------------------------
189 Anonymous function has an unused use $usedPermissions.
279 Anonymous function has an unused use $Group.
279 Anonymous function has an unused use $Manager.
279 Anonymous function has an unused use $usedPermissions.
------ --------------------------------------------------------
------ ----------------------------------------------------
Line lib/QUI/System/Console/Tools/SetSiteAttributes.php
------ ----------------------------------------------------
60 Variable $Project might not be defined.
132 Variable $Project might not be defined.
------ ----------------------------------------------------
------ ------------------------------------------------------------
Line lib/QUI/System/Console/Tools/Update.php
------ ------------------------------------------------------------
556 Variable $lines in empty() always exists and is not falsy.
------ ------------------------------------------------------------
------ ---------------------------------------------------------------------
Line lib/QUI/Update.php
------ ---------------------------------------------------------------------
49 Function glob_recursive not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ ---------------------------------------------------------------------
------ -------------------------------------
Line lib/QUI/Upload/bin/upload.php
------ -------------------------------------
39 Variable $QUM might not be defined.
------ -------------------------------------
------ ---------------------------------------------------------------
Line lib/QUI/Users/Auth/QUIQQER.php
------ ---------------------------------------------------------------
192 Variable $password in empty() always exists and is not falsy.
------ ---------------------------------------------------------------
------ -------------------------------------------------------------
Line lib/QUI/Users/Manager.php
------ -------------------------------------------------------------
1762 Variable $search in empty() always exists and is not falsy.
------ -------------------------------------------------------------
------ --------------------------------------------------------------
Line lib/QUI/UsersGroups/Search.php
------ --------------------------------------------------------------
276 Variable $whereOR in empty() always exists and is not falsy.
343 Variable $where in empty() always exists and is not falsy.
469 Variable $whereOR in empty() always exists and is not falsy.
497 Variable $where in empty() always exists and is not falsy.
------ --------------------------------------------------------------
[ERROR] Found 41 errors