Skip to content

Commit cc78b99

Browse files
committed
Add deprecation notice
1 parent 81d204a commit cc78b99

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/spc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if (PHP_OS_FAMILY === 'Windows' && Phar::running()) {
1717
exec('CHCP 65001');
1818
}
1919

20+
// Print deprecation notice on PHP < 8.4, use red and highlight background
21+
if (PHP_VERSION_ID < 80400) {
22+
echo "\e[43mDeprecation Notice: PHP < 8.4 is deprecated, please upgrade your PHP version.\e[0m\n";
23+
}
24+
2025
try {
2126
(new ConsoleApplication())->run();
2227
} catch (Exception $e) {

0 commit comments

Comments
 (0)