Skip to content

Commit a89c2ef

Browse files
committed
feat(supported-versions): add “Notes” column with upgrade guide links
1 parent 1e0fab8 commit a89c2ef

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

supported-versions.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
// support lifetime, add it under a heading with an anchor, and add the anchor
1111
// and branch names to the array below ('x.y' => '#anchor-name').
1212
$VERSION_NOTES = [
13+
'8.4' => 'https://www.php.net/manual/en/migration84.php',
14+
'8.3' => 'https://www.php.net/manual/en/migration83.php',
15+
'8.2' => 'https://www.php.net/manual/en/migration82.php',
16+
'8.1' => 'https://www.php.net/manual/en/migration81.php',
1317
];
1418
?>
1519

@@ -43,6 +47,7 @@
4347
<th colspan="2">Initial Release</th>
4448
<th colspan="2">Active Support Until</th>
4549
<th colspan="2">Security Support Until</th>
50+
<th colspan="2">Notes</th>
4651
</tr>
4752
</thead>
4853
<tbody>
@@ -59,17 +64,23 @@
5964
<tr class="<?php echo $state ?>">
6065
<td>
6166
<a href="/downloads.php#v<?php echo htmlspecialchars($release['version']) ?>"><?php echo htmlspecialchars($branch) ?></a>
62-
<?php if (isset($VERSION_NOTES[$branch])): ?>
63-
<a class="version-notes" href="<?php echo htmlspecialchars($VERSION_NOTES[$branch]) ?>">*</a>
64-
<?php endif ?>
6567
</td>
6668
<td><?php echo htmlspecialchars($initial->format('j M Y')) ?></td>
6769
<td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($initial, $now)) ?></em></td>
6870
<td><?php echo htmlspecialchars($until->format('j M Y')) ?></td>
6971
<td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($until, $now)) ?></em></td>
7072
<td><?php echo htmlspecialchars($eol->format('j M Y')) ?></td>
7173
<td class="collapse-phone"><em><?php echo htmlspecialchars(format_interval($eol, $now)) ?></em></td>
72-
</tr>
74+
<td>
75+
<?php if (isset($VERSION_NOTES[$branch])): ?>
76+
<a href="<?php echo htmlspecialchars($VERSION_NOTES[$branch]) ?>">
77+
Migration guide for PHP <?php echo htmlspecialchars($branch) ?>
78+
</a>
79+
<?php else: ?>
80+
81+
<?php endif ?>
82+
</td>
83+
</tr>
7384
<?php endforeach ?>
7485
<?php endforeach ?>
7586
</tbody>

0 commit comments

Comments
 (0)