From 4cca5438f71d4f504439fc1003791be3312eea49 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Sat, 16 Nov 2024 16:22:21 +0100 Subject: [PATCH 1/2] Initialize modulesDB --- application/modules/admin/mappers/Module.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/modules/admin/mappers/Module.php b/application/modules/admin/mappers/Module.php index 9a39e43a7..0a9215cb5 100644 --- a/application/modules/admin/mappers/Module.php +++ b/application/modules/admin/mappers/Module.php @@ -48,7 +48,7 @@ public function getModules() /** * Gets all not installed modules. * - * @return ModuleModel[]|Array[] + * @return ModuleModel[]|[] */ public function getModulesNotInstalled() { @@ -60,6 +60,7 @@ public function getModulesNotInstalled() } } + $modulesDB = []; $removeModule = ['admin', 'install', 'sample', 'error']; $modulesDir = array_diff($modulesDir, $removeModule); From e149365d5fe4363e76227a6798acec44a90758bb Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Sat, 16 Nov 2024 16:49:21 +0100 Subject: [PATCH 2/2] Update xdebug.ini xdebug.remove_enable and xdebug.remote_connect_back got replaced in Xdebug 3. --- development/vagrant/xdebug.ini | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/development/vagrant/xdebug.ini b/development/vagrant/xdebug.ini index d0b570e7f..9aae36965 100644 --- a/development/vagrant/xdebug.ini +++ b/development/vagrant/xdebug.ini @@ -1,16 +1,19 @@ -; This switch controls whether Xdebug should try to contact a debug client which -; is listening on the host and port as set with the settings xdebug.remote_host -; and xdebug.remote_port. If a connection can not be established the script will -; just continue as if this setting was Off. -xdebug.remote_enable = On +; This setting controls which Xdebug features are enabled. +; debug: Enables Step Debugging. This can be used to step through your code while it is running, +; and analyse values of variables. +; xdebug.mode=debug should be used instead of xdebug.remote_enable. +xdebug.mode = debug -; If enabled, the xdebug.remote_host setting is ignored and Xdebug will try to connect -; to the client that made the HTTP request. It checks the $_SERVER['REMOTE_ADDR'] variable -; to find out which IP address to use. Please note that there is no filter available, -; and anybody who can connect to the webserver will then be able to start a debugging session, -; even if their address does not match xdebug.remote_host. -xdebug.remote_connect_back = on +; If enabled, Xdebug will first try to connect to the client that made the HTTP request. It checks the +; $_SERVER['HTTP_X_FORWARDED_FOR'] and $_SERVER['REMOTE_ADDR'] variables to find out which hostname or IP address to use. +; If xdebug.client_discovery_header is configured, then the $_SERVER variable with that configured name will be checked +; instead of the default variables. +; If Xdebug can not connect to a debugging client as found in one of the HTTP headers, it will fall back to the hostname +; or IP address as configured by the xdebug.client_host setting. +; This setting does not apply for debugging through the CLI, as the $_SERVER header variables are not available there. +; xdebug.remote_connect_back was replaced by xdebug.discover_client_host. +xdebug.discover_client_host = true ; Controls the amount of array children and object's properties are shown when ; variables are displayed with either xdebug_var_dump(), xdebug.show_local_vars