Skip to content

Fix calendar - #2043

Merged
sy-records merged 2 commits into
php:masterfrom
mattstauffer:mes/fix-calendar
Oct 24, 2026
Merged

sy-records merged 2 commits into
php:masterfrom
mattstauffer:mes/fix-calendar

Conversation

@mattstauffer

@mattstauffer mattstauffer commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: The calendar page is erroring out midpage because of a typo introduced recently, and then PHPStan-ignored. This PR reverts that code back to what it used to do.


Fix typo introduced in b24d310 that was keeping all calendar events from outputting to the page; likely a find-replace or PHPStorm refactor ended up replacing date("...") with cal . phpdate("..."). PHPStan missed this because it was rolled up in the baseline.

Current status: php.net/cal.php just cuts off without even rendering the ending of the page.

Note: This feature reads events.csv which isn't in this repo. I assume it's there in prod?

Fix typo introduced in b24d310.
Remove PHPStan overrides for those bugs.
@github-actions

Copy link
Copy Markdown
Contributor

📊 Regression report for commit c0a96a8 is at https://web-php-regression-report-pr-2043.preview.thephp.foundation

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview for commit c0a96a8 is available at https://web-php-pr-2043.preview.thephp.foundation

@sy-records sy-records left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sy-records
sy-records merged commit e10aeab into php:master Oct 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants