Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorVictor <32728904+ulcuber@users.noreply.github.com>2022-06-09 16:09:55 +0300
committerGitHub <noreply@github.com>2022-06-09 16:09:55 +0300
commita74aba9157e89af3de98b8f2524b1bff445497ac (patch)
tree6983c07101b9f5e9105eee4d3882d9638fae17ea /libs
parentb3fa7d845970d15b45a822492c3bdc1e7cfb6b50 (diff)
fixed: vardumper overriding (#19308)
Diffstat (limited to 'libs')
-rw-r--r--libs/upgradephp/dev.php14
-rw-r--r--libs/upgradephp/upgrade.php6
2 files changed, 14 insertions, 6 deletions
diff --git a/libs/upgradephp/dev.php b/libs/upgradephp/dev.php
new file mode 100644
index 0000000000..1663447040
--- /dev/null
+++ b/libs/upgradephp/dev.php
@@ -0,0 +1,14 @@
+<?php
+
+if (!function_exists('dump')) {
+ /**
+ * `symfony/var-dumper` works only in development environment
+ * adds `dump` for production
+ * should be included after autoloading
+ * @see https://github.com/matomo-org/matomo/issues/6890
+ */
+ function dump()
+ {
+ //
+ }
+}
diff --git a/libs/upgradephp/upgrade.php b/libs/upgradephp/upgrade.php
index 8dcddf6351..680c4a424a 100644
--- a/libs/upgradephp/upgrade.php
+++ b/libs/upgradephp/upgrade.php
@@ -684,12 +684,6 @@ if (!function_exists('gzopen')
}
}
-if (!function_exists('dump')) {
- function dump () {
-
- }
-}
-
/**
* Need to catch that PHP7 error object on php5
*/