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) {