Skip to content

Conversation

@driesvints
Copy link
Member

This PR bumps psr/log to v3. Because of the introduction of type-hints for the method arguments we'll need to explicitly add the types that we support as well to widen the method signature.

}

return $message;
return (string) $message;
Copy link
Member Author

@driesvints driesvints Dec 17, 2021

Choose a reason for hiding this comment

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

I added this because fireLogEvent always expects the $message to be a string. And also because we pipe the message to a decorated psr/log implementation which in turn expects either a string or a Stringable.

@driesvints driesvints changed the title PSR Log v3 [9.x] PSR Log v3 Dec 17, 2021
@driesvints driesvints marked this pull request as ready for review December 17, 2021 08:49
@taylorotwell taylorotwell merged commit 3202603 into master Dec 17, 2021
@taylorotwell taylorotwell deleted the psr-log-v3 branch December 17, 2021 14:45
@GrahamCampbell
Copy link
Collaborator

It is not necessary to add the typehints. We can still support v3 without them.

@driesvints
Copy link
Member Author

@GrahamCampbell can you pr?

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.

4 participants