explode(): Passing null to parameter #2 ($string) of type string is deprecated

83 views
Skip to first unread message

Nash Born

unread,
Oct 12, 2023, 1:43:26 PM10/12/23
to Fat-Free Framework
php 8.2 error explode(): Passing null to parameter #2 ($string) of type string is deprecated

file base.php line 175

− return implode('/', array_map('urlencode', explode('/', $val)));
+ return implode('/', array_map('urlencode', explode('/', $val ?? '')));
Reply all
Reply to author
Forward
0 new messages