From 3e1812d05e9300fdbc065c998abd7aa30e24104f Mon Sep 17 00:00:00 2001 From: JackieDo Date: Sat, 19 Feb 2022 18:15:20 +0700 Subject: [PATCH] Fix for PHP 8.1 and later - Passing null to non-nullable internal function parameters. --- src/Jackiedo/LogReader/Entities/TraceEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jackiedo/LogReader/Entities/TraceEntry.php b/src/Jackiedo/LogReader/Entities/TraceEntry.php index d3f57c0..2cdab77 100644 --- a/src/Jackiedo/LogReader/Entities/TraceEntry.php +++ b/src/Jackiedo/LogReader/Entities/TraceEntry.php @@ -84,7 +84,7 @@ protected function assignAttributes() $parsed = $this->parser->parseTraceEntry($this->content); foreach ($parsed as $key => $value) { - $this->{$key} = str_replace('\\\\', '\\', $value); + $this->{$key} = str_replace('\\\\', '\\', (string) $value); } } }