[web-php] master: Fix warnings on /releases/states.php (#1276)
| From: | Pierrick Charron via GitHub | Date: | Tue, 10 Jun 2025 02:26:20 +0000 |
| Subject: | [web-php] master: Fix warnings on /releases/states.php (#1276) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-32932@lists.php.net to get a copy of this message | ||
Author: Pierrick Charron (adoy)
Committer: GitHub (web-flow)
Pusher: sy-records
Date: 2025-06-10T10:14:21+08:00
Commit: https://github.com/php/web-php/commit/44c91c2ef04f9767d13e56531ec05448c7754b6d
Raw diff: https://github.com/php/web-php/commit/44c91c2ef04f9767d13e56531ec05448c7754b6d.diff
Fix warnings on /releases/states.php (#1276)
Changed paths:
M include/branches.inc
Diff:
diff --git a/include/branches.inc b/include/branches.inc
index f3795963f7..deb1f79841 100644
--- a/include/branches.inc
+++ b/include/branches.inc
@@ -355,7 +355,7 @@ function get_branch_release_date($branch): ?DateTime
{
$initial = get_initial_release($branch);
- return $initial ? new DateTime($initial['date']) : null;
+ return isset($initial['date']) ? new DateTime($initial['date']) : null;
}
function get_branch_support_state($branch) {