Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning on PHP 8.1 #1554

Merged
merged 1 commit into from
May 28, 2021

Conversation

derrabus
Copy link
Contributor

PHP 8.1 issues a deprecation warning for Monolog:

DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated

This PR attempts to fix the problem.

@Seldaek
Copy link
Owner

Seldaek commented May 28, 2021

Oh interesting, I assumed null was the most efficient way to get "now" without triggering string parsing for dates, but I guess not :)

Thanks

@Seldaek Seldaek merged commit 377272d into Seldaek:1.x May 28, 2021
@derrabus derrabus deleted the bugfix/datetime-on-8.1 branch May 28, 2021 07:32
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 7, 2021
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 7, 2021
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 7, 2021
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 15, 2021
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 17, 2021
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 17, 2021
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 17, 2021
ruudk added a commit to SimpleBus/SimpleBus that referenced this pull request Nov 17, 2021
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.

None yet

2 participants