Skip to content

Commit

Permalink
Standardize minimum PHP version declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrebs committed Jan 21, 2021
1 parent 9fdf69f commit 4295557
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The project generally follows the [PSR-4 coding standards](http://www.php-fig.or
Regarding the architecture, this project is heavily based on ZF2 architecture and philosophy, so the ZF2 documentation
will also be a valuable source of information.

Since the system requires PHP 5.4+, everyone is encouraged to use all the new features that version has to offer.
Since the system requires PHP 5.6+, everyone is encouraged to use all the new features that version has to offer.

## License

Expand Down
15 changes: 3 additions & 12 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
<?php
/**
* Welcome to the famous*, beloved*, highly respected*
*
* ep-3 Bookingsystem
*
* (c) 2018 Tobias Krebs
*
* Website: http://bs.hbsys.de/
* License: MIT
*
* (* Not yet, but maybe some day ...)
* ep-3 Bookingsystem Entry Point
*/

ob_start();
Expand All @@ -19,8 +10,8 @@
/**
* Quickly check the current PHP version.
*/
if (version_compare(PHP_VERSION, '5.4.0') < 0) {
exit('PHP 5.4+ is required (currently running PHP ' . PHP_VERSION . ')');
if (version_compare(PHP_VERSION, '5.6.0') < 0) {
exit('PHP 5.6+ is required (currently running PHP ' . PHP_VERSION . ')');
}

/**
Expand Down
4 changes: 2 additions & 2 deletions public/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
/**
* Quickly check the current PHP version.
*/
if (version_compare(PHP_VERSION, '5.4.0') < 0) {
exit('PHP 5.4+ is required (currently running PHP ' . PHP_VERSION . ')');
if (version_compare(PHP_VERSION, '5.6.0') < 0) {
exit('PHP 5.6+ is required (currently running PHP ' . PHP_VERSION . ')');
}

/**
Expand Down

0 comments on commit 4295557

Please sign in to comment.