PHP 8.1 warning: strpos(): Passing null to parameter #1 ($haystack) of type stri
-
Is it possible to update this code in /google-site-kit/includes/Core/Admin/Screens.php:113
add_action( 'admin_menu', function() { $this->add_screens(); } );
for this one, to prevent php 8.1 warnings, please? Tks! ??
add_action( 'admin_menu', function() { if ($this !== null && is_string($this)) { $this->add_screens(); } } );
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘PHP 8.1 warning: strpos(): Passing null to parameter #1 ($haystack) of type stri’ is closed to new replies.