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 9602be2 commit 3260168Copy full SHA for 3260168
bin/doctum.php
@@ -1,6 +1,14 @@
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;
9
+ exit(1);
10
+}
11
+
12
// installed via composer?
13
$composerDir = __DIR__ . '/../../../autoload.php';
14
if (file_exists($composerDir)) {
0 commit comments