adrianbj / TracyDebugger

The ultimate debugging and development tool for ProcessWire
https://adrianbj.github.io/TracyDebugger/
GNU General Public License v2.0
88 stars 13 forks source link

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

Closed matjazpotocnik closed 2 years ago

matjazpotocnik commented 2 years ago

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 https://github.com/processwire/processwire-issues/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()?

adrianbj commented 2 years ago

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.