From 0b7dba5e2fa7012c1f01655ab27e6ae9d07f4afe Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 27 Oct 2021 17:46:29 +0900 Subject: [PATCH] PHPstan composer autoloader boostrap --- phpstan.neon | 2 ++ www/includes/admin_header.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index dc6fcdb1..6e37ff4f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,6 +7,8 @@ parameters: - %currentWorkingDirectory%/www bootstrapFiles: - %currentWorkingDirectory%/phpstan-bootstrap.php + # - %currentWorkingDirectory%/www/lib/autoloader.php + - %currentWorkingDirectory%/www/vendor/autoload.php scanDirectories: - www/lib/Smarty scanFiles: diff --git a/www/includes/admin_header.php b/www/includes/admin_header.php index 3e200362..2d72ed97 100644 --- a/www/includes/admin_header.php +++ b/www/includes/admin_header.php @@ -15,8 +15,6 @@ declare(strict_types=1); if (!empty($DEBUG_ALL) && !empty($ENABLE_ERROR_HANDLING)) { include BASE . LIBS . "Error.Handling.php"; } -// predefine vars -$messages = array(); //------------------------------ variable init end //------------------------------ library include start