Skip to content

Commit

Permalink
Merge pull request #14 from itelmenko/issue13
Browse files Browse the repository at this point in the history
Fix for monolog 3+
  • Loading branch information
itelmenko authored Jul 10, 2023
2 parents 31e6079 + 7d0b1bf commit 4a6bf63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ITelmenko/Logger/Monolog/Handler/MysqlHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

class MysqlHandler extends AbstractProcessingHandler
{
protected function write(array $record):void
/**
* @param array|Monolog\LogRecord $record
* @return void
*/
protected function write($record): void
{
Log::create([
'instance' => gethostname(),
Expand Down

0 comments on commit 4a6bf63

Please sign in to comment.