Skip to content

Use idate('Y') (etc) instead of (int) date('Y'). - #1713

Merged
cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:idate
Nov 13, 2026
Merged

cpeel merged 1 commit into
DistributedProofreaders:masterfrom
bpfoley:idate

Conversation

@bpfoley

@bpfoley bpfoley commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

The former produces an integer directly, and the latter produces a string which is parsed into an integer, and was done in a hurry by Your's Truly when trying to fix some level 5 PHPStan warnings.

The former produces an integer directly, and the latter produces a
string which is parsed into an integer, and was done in a hurry by
Your's Truly when trying to fix some level 5 PHPStan warnings.
@cpeel
cpeel merged commit 45afc1f into DistributedProofreaders:master Nov 13, 2026
12 checks passed
@bpfoley
bpfoley deleted the idate branch November 13, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants