PHP 8.2 and Deprecation notices
-
Hello,
You need to add this type of code for. After add this type then automatically resolve this type of error notice.Before:
public static function get_transient_name( $id ) {
return Commerce::ABBR . '-cart-' . md5( $id );
}After fix this issue:
public static function get_transient_name( $id ) {
if ($id !== null) {
return Commerce::ABBR . '-cart-' . md5( $id );
} else {
return Commerce::ABBR . '-cart-' . md5('');
}
}Thanks!!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP 8.2 and Deprecation notices’ is closed to new replies.