Skip to content

Commit

Permalink
Check php version in index.php and artisan
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Nov 12, 2018
1 parent 321987b commit 074f98f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions artisan
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env php
<?php

// Check PHP version
if (!version_compare(phpversion(), '7.0.0', '>=')) {
echo "\e[31mPHP 7.x is required to run FreeScout.\e[0m\n";
exit();
}

define('LARAVEL_START', microtime(true));

/*
Expand Down
6 changes: 6 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

// Check PHP version
if (!version_compare(phpversion(), '7.0.0', '>=')) {
echo 'PHP 7.x is required to run FreeScout.';
exit();
}

/**
* Laravel - A PHP Framework For Web Artisans.
*
Expand Down

0 comments on commit 074f98f

Please sign in to comment.