10000 Update(check-config): use PHP constant for version check on check_con… · FriendsOfSymfony1/symfony1@f1df8ba · GitHub
[go: up one dir, main page]

Skip to content

Commit f1df8ba

Browse files
committed
Update(check-config): use PHP constant for version check on check_configuration.php file
1 parent a810c4d commit f1df8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/bin/check_configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function get_ini_path()
6161

6262
// mandatory
6363
echo "\n** Mandatory requirements **\n\n";
64-
check(version_compare(phpversion(), '5.3.1', '>='), sprintf('PHP version is at least 5.3.1 (%s)', phpversion()), 'Current version is '.phpversion(), true);
64+
check(PHP_VERSION_ID >= 70400, sprintf('PHP version is at least 7.4.0 (%s)', PHP_VERSION), 'Current version is '.PHP_VERSION, true);
6565

6666
// warnings
6767
echo "\n** Optional checks **\n\n";

0 commit comments

Comments
 (0)
0