1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00

loosen requirementsS

This commit is contained in:
Taylor Otwell
2016-05-04 21:24:58 -05:00
parent 0802d32a94
commit bbddc0d4f9
3 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@
}
},
"require": {
"php": ">=7.0.0",
"php": ">=5.5.9",
"mnapoli/silly": "~1.0",
"symfony/process": "~2.7|~3.0",
"nategood/httpful": "^0.2.20"

View File

@@ -48,8 +48,8 @@ function should_be_compatible()
exit(1);
}
if (PHP_MAJOR_VERSION < 7) {
echo "Valet requires PHP 7.0 or later.";
if (version_compare(PHP_VERSION, '5.5.9', '<')) {
echo "Valet requires PHP 5.5.9 or later.";
exit(1);
}

View File

@@ -16,7 +16,7 @@
$site = basename(
$_SERVER['HTTP_HOST'],
'.'.$GLOBALS['VALET']['domain'] ?? 'dev'
'.'.$GLOBALS['VALET']['domain']
);
/**