This question already has an answer here:
Im getting this error on line $options[ $option ] = $value;
Warning: Illegal offset type in
and code is:
public function set_option( $option = '', $value = '' ) {
if ( $option == '' ) {
return;
}
// get current options
$options = $this->options();
// set options
$options[ $option ] = $value;
// save options
$this->options = $options;
}
I do gettype of $option and it say string :(
</div>