Skip to content

Commit d9d1b4c

Browse files
stloydnorberttech
authored andcommitted
Enforce running docs command on PHP 8.2 only
1 parent c2dacd3 commit d9d1b4c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/docs.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
require __DIR__ . '/../vendor/autoload.php';
1717

18+
if (version_compare(PHP_VERSION, '8.3', '>=')) {
19+
print PHP_EOL . 'This app can be run only on PHP 8.2' . PHP_EOL;
20+
21+
exit(1);
22+
}
23+
1824
if (false === in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
1925
print PHP_EOL . 'This app may only be invoked from a command line, got "' . PHP_SAPI . '"' . PHP_EOL;
2026

0 commit comments

Comments
 (0)