: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Nextend\Framework\Font;
use Nextend\Framework\Misc\Base64;
use Nextend\Framework\Model\Section;
public static function parse($data) {
} else if (is_numeric($data)) {
$font = Section::getById($data, 'font');
* Linked font not exists anymore
if (is_string($font['value'])) {
* Old format when value stored as Base64
$decoded = $font['value'];
if ($decoded[0] != '{') {
$decoded = Base64::decode($decoded);
$value = json_encode($font['value']);
} else if ($data[0] != '{') {
return Base64::decode($data);