Timestamp creation in Handler can fail #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: MensBeam/Logger#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Because of how the timestamps are created using
microtime
allowing for microsecond precision timestamps that occur exactly on the second will be integers. TheDateTimeImmutable::format
method expects a string representation of a floating point number and will fail.The solution is to use
sprintf
and format the output ofmicrotime
to always have 4 decimal points.Fixed in
0a710986cd
.