summaryrefslogtreecommitdiffstats
path: root/lib/private/App/CompareVersion.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /lib/private/App/CompareVersion.php
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
downloadnextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.tar.gz
nextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.zip
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/App/CompareVersion.php')
-rw-r--r--lib/private/App/CompareVersion.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/App/CompareVersion.php b/lib/private/App/CompareVersion.php
index 12cd7615769..5d38d4c358e 100644
--- a/lib/private/App/CompareVersion.php
+++ b/lib/private/App/CompareVersion.php
@@ -26,10 +26,10 @@ namespace OC\App;
use InvalidArgumentException;
class CompareVersion {
- const REGEX_MAJOR = '/^\d+$/';
- const REGEX_MAJOR_MINOR = '/^\d+.\d+$/';
- const REGEX_MAJOR_MINOR_PATCH = '/^\d+.\d+.\d+$/';
- const REGEX_SERVER = '/^\d+.\d+.\d+(.\d+)?$/';
+ public const REGEX_MAJOR = '/^\d+$/';
+ public const REGEX_MAJOR_MINOR = '/^\d+.\d+$/';
+ public const REGEX_MAJOR_MINOR_PATCH = '/^\d+.\d+.\d+$/';
+ public const REGEX_SERVER = '/^\d+.\d+.\d+(.\d+)?$/';
/**
* Checks if the given server version fulfills the given (app) version requirements.