Skip to content

Commit

Permalink
Fixed Fatal error: Declaration of WordPressHandler\WordPressHandler->…
Browse files Browse the repository at this point in the history
…write(array $record) must be compatible with that of Monolog\Handler\AbstractProcessingHandler->write(array $record): void
  • Loading branch information
ewake committed Oct 28, 2019
1 parent 6fb38e2 commit e2619f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WordPressHandler/WordPressHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function uninitialize()
* @param $record[]
* @return void
*/
protected function write(array $record)
protected function write(array $record): void
{
if (!$this->initialized) {
$this->initialize($record);
Expand Down

2 comments on commit e2619f5

@bradmkjr
Copy link
Owner

Choose a reason for hiding this comment

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

Thank you for handling this, I'm going to do a version bump to get this change deployed out to users.

@BenceSzalai
Copy link
Collaborator

Choose a reason for hiding this comment

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

For this fix to be effective in the future please upgrade to v2.0.0 (or later)! In v1.6.4 it has been reverted and will not be available under 1.x to keep that compatible with Monolog v1.

Please sign in to comment.