Author: Andreas Möller (localheinz) Committer: GitHub (web-flow) Pusher: cmb69 Date: 2022-06-28T15:25:35+02:00
Commit: https://github.com/php/web-php/commit/1e7a49e268a4af50fa3dc00d084166e7eb01e0cc Raw diff: https://github.com/php/web-php/commit/1e7a49e268a4af50fa3dc00d084166e7eb01e0cc.diff Fix: Remove unused local variables Closes GH-578. Changed paths: M images/supported-versions.php M include/branches.inc Diff: diff --git a/images/supported-versions.php b/images/supported-versions.php index 4b29f23d8..dc15d43b7 100644 --- a/images/supported-versions.php +++ b/images/supported-versions.php @@ -15,7 +15,7 @@ function branches_to_show() { $branches = array(); // Flatten out the majors. - foreach (get_all_branches() as $major => $major_branches) { + foreach (get_all_branches() as $major_branches) { foreach ($major_branches as $branch => $version) { if (version_compare($branch, '5.3', 'ge') && get_branch_security_eol_date($branch) > min_date()) { $branches[$branch] = $version; diff --git a/include/branches.inc b/include/branches.inc index 52d96ca3d..b4024509c 100644 --- a/include/branches.inc +++ b/include/branches.inc @@ -119,7 +119,7 @@ function get_all_branches() { } krsort($branches); - foreach ($branches as $major => &$branch) { + foreach ($branches as &$branch) { krsort($branch); } @@ -218,7 +218,7 @@ function get_eol_branches($always_include = null) { } krsort($branches); - foreach ($branches as $major => &$branch) { + foreach ($branches as &$branch) { krsort($branch); } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php