Skip to content

Conversation

enkota
Copy link

@enkota enkota commented Mar 19, 2023

No description provided.

* @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.

2 participants