Skip to content

Commit

Permalink
Add end of life for PHP 8.1 #106
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Nov 30, 2021
1 parent 33aabd0 commit 4359c01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions admin/class-oik-trace-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,14 @@ function php_end_of_life() {
, "5.3" => "2014-08-14"
, "5.4" => "2015-09-03"
, "5.5" => "2016-07-21"
, "5.6" => "2018-12-31"// This is the minimum supported by WordPress
, "5.6" => "2018-12-31" // Minimum for legacy
, "7.0" => "2018-12-03"
, "7.1" => "2019-12-01"
, "7.2" => "2020-11-30"
, '7.3' => '2021-12-06'
, '7.4' => '2022-11-28' // This is recommended
, '7.4' => '2022-11-28' // Recommended
, '8.0' => '2023-11-26'
, '8.1' => '2024-11-25'
);
$eol = $php_eol[ PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION ];
if ( $eol < date( "Y-m-d" ) ) {
Expand All @@ -235,7 +236,7 @@ function php_end_of_life() {
$message = "End of life for your version of PHP is: $eol";
}
} else {
$message = "You're out of support by over 9 years!";
$message = "You're out of support by over 10 years!";
}
return( $message );
}
Expand Down

0 comments on commit 4359c01

Please sign in to comment.