PHP 8.1: Deprecated: explode()
Soean opened this issue · comments
Sören Wünsch commented
get_current_wp_release()
returns null
, if the API responds with an error:
wordpress-beta-tester/src/WPBT/WP_Beta_Tester.php
Lines 240 to 242 in d6510bf
This value is used as 2. parameter in explode()
:
$current_release = $this->wp_beta_tester->get_current_wp_release();
$next_release = array_map( 'intval', explode( '.', $current_release ) );
With PHP 8.1 I get an error:
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated
Andy Fragen commented
Thanks for the debugging. I'll get this updated and released.
Andy Fragen commented
Fixed. b28a5fb