Check PHP version first (#10473)

Check PHP version before anything so we can inform the user instead of them getting generic error 500.
This commit is contained in:
Tony Murray
2019-08-01 06:58:22 -05:00
committed by GitHub
parent 91d88ee6a7
commit c6e719b9be
2 changed files with 21 additions and 10 deletions

View File

@@ -14,10 +14,9 @@ define('LARAVEL_START', microtime(true));
|
*/
@require_once __DIR__ . '/../app/Checks.php';
\App\Checks::preAutoload();
@include __DIR__ . '/../vendor/autoload.php';
if (!class_exists(\App\Checks::class)) {
require __DIR__ . '/../app/Checks.php';
}
\App\Checks::postAutoload();