Skip to content

Commit

Permalink
Merge pull request #39 from JackieDo/version-2.x
Browse files Browse the repository at this point in the history
Fix for PHP 8.1 and later
  • Loading branch information
JackieDo authored Feb 19, 2022
2 parents 01faa9d + 285c1b8 commit 8b48899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jackiedo/LogReader/LogReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function __construct(Cache $cache, Config $config, Request $request)
$this->levelable = new Levelable;
$this->parser = new LogParser;

$defaultParserClass = $this->config->get('log-reader.default_log_parser', null);
$defaultParserClass = (string) $this->config->get('log-reader.default_log_parser', null);

if (class_exists($defaultParserClass)) {
$logParser = new $defaultParserClass;
Expand Down

0 comments on commit 8b48899

Please sign in to comment.