Skip to content

Commit

Permalink
Update minimum PHP version to 7.0
Browse files Browse the repository at this point in the history
Note: PHP version is now specified with `^` operator instead of `>=`,
so we need to add major PHP versions by ORing them into the constraint.

This makes supporting new PHP versions an explicit act.

Fixes #25956
  • Loading branch information
dregad committed Mar 8, 2021
1 parent 56c7392 commit 960d141
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -3,7 +3,7 @@
"description": "Mantis Bug Tracker",
"type": "project",
"require": {
"php": ">=5.5.0",
"php": "^7.0 || ^8.0",
"ext-mbstring": "*",
"ext-json": "*",
"slim/slim": "^3.0",
Expand Down Expand Up @@ -33,7 +33,7 @@
],
"config": {
"platform": {
"php": "5.5.0"
"php": "7.0.0"
}
}
}
2 changes: 1 addition & 1 deletion core/constant_inc.php
Expand Up @@ -35,7 +35,7 @@
define( 'WARN', 2 );

# PHP-related constants
define( 'PHP_MIN_VERSION', '5.5.0' );
define( 'PHP_MIN_VERSION', '7.0.0' );
define( 'PHP_CLI', 0 );
define( 'PHP_CGI', 1 );

Expand Down
2 changes: 1 addition & 1 deletion docbook/Admin_Guide/en-US/Installation.xml
Expand Up @@ -312,7 +312,7 @@
<row>
<entry>PHP</entry>
<entry>PHP</entry>
<entry>5.5.x</entry>
<entry>7.0</entry>
<entry>7.2 or later</entry>
<entry>See above for PHP extensions</entry>
</row>
Expand Down

0 comments on commit 960d141

Please sign in to comment.