mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
loosen requirementsS
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.0.0",
|
"php": ">=5.5.9",
|
||||||
"mnapoli/silly": "~1.0",
|
"mnapoli/silly": "~1.0",
|
||||||
"symfony/process": "~2.7|~3.0",
|
"symfony/process": "~2.7|~3.0",
|
||||||
"nategood/httpful": "^0.2.20"
|
"nategood/httpful": "^0.2.20"
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ function should_be_compatible()
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PHP_MAJOR_VERSION < 7) {
|
if (version_compare(PHP_VERSION, '5.5.9', '<')) {
|
||||||
echo "Valet requires PHP 7.0 or later.";
|
echo "Valet requires PHP 5.5.9 or later.";
|
||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
$site = basename(
|
$site = basename(
|
||||||
$_SERVER['HTTP_HOST'],
|
$_SERVER['HTTP_HOST'],
|
||||||
'.'.$GLOBALS['VALET']['domain'] ?? 'dev'
|
'.'.$GLOBALS['VALET']['domain']
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user