diff --git a/src/Jackiedo/LogReader/LogReader.php b/src/Jackiedo/LogReader/LogReader.php index cf245b6..7a1e9f4 100644 --- a/src/Jackiedo/LogReader/LogReader.php +++ b/src/Jackiedo/LogReader/LogReader.php @@ -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;