File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,14 @@ function branches_to_show() {
27
27
return $ branches ;
28
28
}
29
29
30
- function min_date () {
30
+ function min_date (): DateTime
31
+ {
31
32
$ now = new DateTime ('January 1 ' );
32
33
return $ now ->sub (new DateInterval ('P3Y ' ));
33
34
}
34
35
35
- function max_date () {
36
+ function max_date (): DateTime
37
+ {
36
38
$ now = new DateTime ('January 1 ' );
37
39
return $ now ->add (new DateInterval ('P5Y ' ));
38
40
}
Original file line number Diff line number Diff line change @@ -286,7 +286,8 @@ function get_final_release($branch) {
286
286
return null ;
287
287
}
288
288
289
- function get_branch_bug_eol_date ($ branch ) {
289
+ function get_branch_bug_eol_date ($ branch ): ?DateTime
290
+ {
290
291
if (isset ($ GLOBALS ['BRANCHES ' ][$ branch ]['stable ' ])) {
291
292
return new DateTime ($ GLOBALS ['BRANCHES ' ][$ branch ]['stable ' ]);
292
293
}
@@ -296,7 +297,8 @@ function get_branch_bug_eol_date($branch) {
296
297
return $ date ? $ date ->add (new DateInterval ('P2Y ' )) : null ;
297
298
}
298
299
299
- function get_branch_security_eol_date ($ branch ) {
300
+ function get_branch_security_eol_date ($ branch ): ?DateTime
301
+ {
300
302
if (isset ($ GLOBALS ['BRANCHES ' ][$ branch ]['security ' ])) {
301
303
return new DateTime ($ GLOBALS ['BRANCHES ' ][$ branch ]['security ' ]);
302
304
}
@@ -313,7 +315,8 @@ function get_branch_security_eol_date($branch) {
313
315
return $ date ? $ date ->add (new DateInterval ('P3Y ' )) : null ;
314
316
}
315
317
316
- function get_branch_release_date ($ branch ) {
318
+ function get_branch_release_date ($ branch ): ?DateTime
319
+ {
317
320
$ initial = get_initial_release ($ branch );
318
321
319
322
return $ initial ? new DateTime ($ initial ['date ' ]) : null ;
You can’t perform that action at this time.
0 commit comments