adrianbj/TracyDebugger

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated

matjazpotocnik opened this issue · 1 comments

in TracyDebugger.module.php line 2568. This warning only pops up when using PHP 8.1.0, where there are some errors by the core PW (reported here processwire/processwire-issues#1467). $property is NULL, I guess this should never happen in the first place, but maybe you could check if $property is string before calling trim()?

Thanks - that is weird - I don't know what would cause null to ever be passed to that method, but I've added a check anyway.

I've added locally and will commit with the next round of updates soon.