Hi all
I've just updated to MetaBox-AIO from v1.24.2 to v1.26.2 , using php8.2, and I get the following error when rendering views
Deprecated: Use of "static" in callables is deprecated in /var/www/html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Fields/BaseRenderer.php on line 11
The view that is rendering is like this one. It fails rendering {{ segmento.nombre_visible }}
<div class="ytk-product-gallery">
{% set relationship = attribute( relationships, 'pilar-del-segmento' ) %}
{% for segmento in relationship.from %}
<div class="ypg-segmento">
<h2>{{ segmento.nombre_visible }}</h2>
The affected Metabox code is this one
<?php
namespace MBViews\Fields;
use RWMB_Field;
class BaseRenderer {
public static $field;
public static function parse( $value, $field ) {
self::$field = $field;
return $field['clone'] ? array_map( 'static::get_clone_value', (array) $value ) : static::get_clone_value( $value );
}
public static function get_clone_value( $clone ) {
return self::$field['multiple'] ? array_map( 'static::get_single_value', (array) $clone ) : static::get_single_value( $clone );
}
public static function get_single_value( $value ) {
return RWMB_Field::call( 'format_single_value', self::$field, $value, [], null );
}
}
This is breaking all the sites based on MetaBox Views.
Thanks!