Skip to content

Commit 88672ec

Browse files
committed
Add deprecation notices to functions inside branches.inc
1 parent 0dc50b0 commit 88672ec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/branches.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ function get_final_release($branch) {
282282
return null;
283283
}
284284

285+
#[Deprecated('Use Branches::getBranchBugsEOLDate')]
285286
function get_branch_bug_eol_date($branch): ?DateTime
286287
{
287288
if (isset($GLOBALS['BRANCHES'][$branch]['stable'])) {
@@ -301,6 +302,7 @@ function get_branch_bug_eol_date($branch): ?DateTime
301302
return $date?->setDate($date->format('Y'), 12, 31);
302303
}
303304

305+
#[Deprecated('Use Branches::getBranchSecurityEOLDate')]
304306
function get_branch_security_eol_date($branch): ?DateTime
305307
{
306308
if (isset($GLOBALS['BRANCHES'][$branch]['security'])) {
@@ -328,13 +330,15 @@ function get_branch_security_eol_date($branch): ?DateTime
328330
return $date?->setDate($date->format('Y'), 12, 31);
329331
}
330332

333+
#[Deprecated('Use Branches::getBranchReleaseDate')]
331334
function get_branch_release_date($branch): ?DateTime
332335
{
333336
$initial = get_initial_release($branch);
334337

335338
return isset($initial['date']) ? new DateTime($initial['date']) : null;
336339
}
337340

341+
#[Deprecated('Use Branches::getBranchSupportState')]
338342
function get_branch_support_state($branch) {
339343
$initial = get_branch_release_date($branch);
340344
$bug = get_branch_bug_eol_date($branch);

0 commit comments

Comments
 (0)