set_time_limit(): Passing null to parameter #1 ($seconds) of type int
-
In sitemap-core.php file uses set_time_limit() function, that accept the single integer-argument $second. But classe’s method get_option() may return null for some cases and then error_log shows deprecated notice:
PHP Deprecated: set_time_limit(): Passing null to parameter #1 ($seconds) of type int is deprecated in google-sitemap-generator/sitemap-core.php
I suppose type casting will solve this little problem:
set_time_limit( (int) $this->get_option( ‘b_time’ ) )
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘set_time_limit(): Passing null to parameter #1 ($seconds) of type int’ is closed to new replies.