itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.7k stars 320 forks source link

fix: Passing null to parameter #1 in strpos() #552

Closed usernotnull closed 2 years ago

usernotnull commented 2 years ago

Without this PR and on PHP 8.1, I'm getting the below warning:

strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../vendor/itsgoingd/clockwork/Clockwork/Helpers/StackFilter.php on line 129

I added a simple null check.

itsgoingd commented 2 years ago

Thanks!