We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84694bc commit 43eb0cbCopy full SHA for 43eb0cb
bin/doctum.php
@@ -1,11 +1,9 @@
1
#!/usr/bin/env php
2
<?php
3
4
-if (PHP_VERSION_ID < 70100) {
5
- echo 'You need to use PHP 7.1 to run Doctum.' . PHP_EOL;
6
- $majorVersion = (int) (PHP_VERSION_ID / 10000);
7
- $minorVersion = (int) substr((string) PHP_VERSION_ID, -4, 2);
8
- echo 'Current detected version: (' . $majorVersion . '.' . $minorVersion . ') (' . PHP_VERSION_ID . ').' . PHP_EOL;
+if (PHP_MAJOR_VERSION <= 7 && PHP_MINOR_VERSION < 1) {
+ echo 'You need to use PHP 7.1 or above to run Doctum.' . PHP_EOL;
+ echo 'Current detected version: (' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . ') (' . PHP_VERSION_ID . ').' . PHP_EOL;
9
exit(1);
10
}
11
0 commit comments