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

Added LogRecord to support L10 with Monolog 3.0 #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

enkota
Copy link

@enkota enkota commented Mar 19, 2023

No description provided.

@@ -57,7 +58,7 @@ public function __construct(string $logLevel)
* @param array $record
* @return void
*/
protected function write(array $record): void
protected function write(LogRecord $record): void
Copy link

@Pal9yni4bi Pal9yni4bi Apr 3, 2023

Choose a reason for hiding this comment

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

It breaks compatibility with monolog 2.* (it has such interface, but it hasn't implementation), so it's needed to remove it from compatible packages in composer.json. As well, as Laravel 7-9, that requires monolog 2.*.

Or it could be changed to array|LogRecord, but it'll break compatibility with Laravel before 9, cause union types is php8 feature.

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