Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-06-28T14:50:11+02:00

Commit: 
https://github.com/php/web-php/commit/d3876f68ea218cfb58af3112ca1dca60723dd551
Raw diff: 
https://github.com/php/web-php/commit/d3876f68ea218cfb58af3112ca1dca60723dd551.diff

Fix: Remove unused parameter

* Fix: Remove unused parameter
* Fix: Remove unused local variable

Closes GH-574.

Changed paths:
  M  releases/index.php


Diff:

diff --git a/releases/index.php b/releases/index.php
index b2bf361e2..5fe76c287 100644
--- a/releases/index.php
+++ b/releases/index.php
@@ -126,7 +126,7 @@
   <a class="headline" href="/eol.php">End of Life Dates</a>
   <div class="body">
     <p>The most recent branches to reach end of life status are:</p>
-    <ul>' . recentEOLBranchesHTML(2) . '</ul>
+    <ul>' . recentEOLBranchesHTML() . '</ul>
   </div>
 </div>
 
@@ -167,9 +167,9 @@
 </div>
 ']);
 
-function recentEOLBranchesHTML(int $count): string {
+function recentEOLBranchesHTML(): string {
        $eol = array();
-       foreach (get_eol_branches() as $major => $branches) {
+       foreach (get_eol_branches() as $branches) {
                foreach ($branches as $branch => $detail) {
                        $detail_date = $detail['date'];
                        while (isset($eol[$detail_date])) $detail_date++;

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to