From c0a96a81cadc21bee916dc35873ca82c5abce66e Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Fri, 23 Oct 2026 19:56:11 -0400 Subject: [PATCH 1/2] Fix calendar Fix typo introduced in b24d3106d. Remove PHPStan overrides for those bugs. --- phpstan-baseline.neon | 12 ------------ public/cal.php | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1be2fec354..1bc143502f 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1482,12 +1482,6 @@ parameters: count: 1 path: public/cached.php - - - message: '#^Constant cal not found\.$#' - identifier: constant.notFound - count: 1 - path: public/cal.php - - message: '#^Function date_for_recur\(\) has no return type specified\.$#' identifier: missingType.return @@ -1560,12 +1554,6 @@ parameters: count: 1 path: public/cal.php - - - message: '#^Function phpdate not found\.$#' - identifier: function.notFound - count: 1 - path: public/cal.php - - message: '#^Function read_event\(\) has no return type specified\.$#' identifier: missingType.return diff --git a/public/cal.php b/public/cal.php index 5bb64b2918..4c1624ded0 100644 --- a/public/cal.php +++ b/public/cal.php @@ -189,7 +189,7 @@ // Print out day number and all events for the day echo '',$i,''; - display_events_for_day(cal . phpdate("Y-m-", $bom) . sprintf("%02d", $i), $events); + display_events_for_day(date("Y-m-", $bom) . sprintf("%02d", $i), $events); echo ''; // Break HTML table row if at end of week From 7bcb8e1ff58caed7253a84ae217a3be440ab9c78 Mon Sep 17 00:00:00 2001 From: Matt Stauffer Date: Fri, 23 Oct 2026 20:29:22 -0400 Subject: [PATCH 2/2] Update PHPStan baseline to match current count of date() calls --- phpstan-baseline.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1bc143502f..4cccfe305e 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1587,7 +1587,7 @@ parameters: - message: '#^Parameter \#2 \$timestamp of function date expects int\|null, int\|false given\.$#' identifier: argument.type - count: 14 + count: 15 path: public/cal.php -