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
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-01-16 22:42:37 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2020-01-16 22:42:37 +0300
commit1361185b9de2ea474cb4c3cec71523c300e8f7eb (patch)
tree6709bfd6021770a79a88832e147cbeda78c8d679 /plugins/Diagnostics
parentabd7d9d145e621878d89a87b9d09a93b6119360c (diff)
Removes some more unneeded code (#15395)
Diffstat (limited to 'plugins/Diagnostics')
-rw-r--r--plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php b/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php
index 679167576e..da353a8256 100644
--- a/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php
+++ b/plugins/Diagnostics/Diagnostic/PhpSettingsCheck.php
@@ -62,23 +62,6 @@ class PhpSettingsCheck implements Diagnostic
$maxExecutionTime->setErrorResult(DiagnosticResult::STATUS_WARNING);
$requiredSettings[] = $maxExecutionTime;
- if ($this->isPhpVersionAtLeast56() && ! defined("HHVM_VERSION") && !$this->isPhpVersionAtLeast70()) {
- // always_populate_raw_post_data must be -1
- // removed in PHP 7
- $requiredSettings[] = new RequiredPhpSetting('always_populate_raw_post_data', -1);
- }
-
return $requiredSettings;
}
-
- private function isPhpVersionAtLeast56()
- {
- return version_compare(PHP_VERSION, '5.6', '>=');
- }
-
- private function isPhpVersionAtLeast70()
- {
- return version_compare(PHP_VERSION, '7.0.0-dev', '>=');
- }
-
}