Remove check on stable PHP versions from dashboard widget logic (#46)

Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
Andy Fragen 2025-06-11 12:17:14 -07:00 committed by GitHub
parent c156fddb3c
commit 7ecc4e0198
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,9 +224,9 @@ function check_php_version( string $version ) {
$cur_branch_data = $branches[ $cur_branch ];
if ( $cur_branch_data['state'] === 'stable' || $cur_branch_data['state'] === 'security' ) {
if ( $cur_branch_data['state'] === 'security' ) {
return [
// If we're on the stable or secure branches, the recommended version
// If we're on the security branches, the recommended version
// should be the latest version of this branch.
'recommended_version' => $cur_branch_data['latest'],
'minimum_version' => MINIMUM_PHP,