mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 16:15:49 +03:00
[GH-ISSUE #1959] Class not find for DateTimeImmutable in Logger #841
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#841
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?
Originally created by @titospeakap on GitHub (Mar 24, 2025).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1959
Monolog version 2
In the class Logger, in version 2, line 383, we have
but class
DateTimeImmutablewas not imported. We need to add a use statement or use\DateTimeImmutable.Right now, in our project, we are getting the error
@stof commented on GitHub (Mar 24, 2025):
the file
src/Monolog/DateTimeImmutable.phpdefinitely exists in Monolog 2.x: https://github.com/Seldaek/monolog/blob/2.x/src/Monolog/DateTimeImmutable.phpSo make sure you are not deleting files from your
vendorfolder.@titospeakap commented on GitHub (Mar 24, 2025):
sorry @stof , my bad... indeed the file exists, something else going on.. I'll close the ticket. Thanks for the quick reply.