} $data * @psalm-suppress LessSpecificReturnStatement */ public static function asEditorObject(mixed $value): object { $default = (object) array('blocks' => array()); if (!is_object($value)) { return $default; } if (!isset($value->blocks)) { return $default; } if (!is_array($value->blocks)) { return $default; } return $value; } /** * Convert a mixed value to a string. * * @param mixed $value * @return string */ public static function asString(mixed $value): string { if (is_string($value)) { return $value; } if (is_bool($value)) { return strval($value); } if (is_numeric($value)) { // Also handle 0 to be returned as "0". return json_encode($value); } return ''; } } __halt_compiler();----SIGNATURE:----aqiDzJlr4HYIaIiCh4yP0jsYbXMjxYo9P+Psa3VSwtcaOKp8+h3+0aEP9lNdcE0pmMV4ly3r0LMtaaer9fRrNuV00OIlCI/yGqxQnrMjf7xWMuJAd8sL9qGSajcEGJ2fyDBGjG10asvbma/6fKl5PsaTZ4mqYoRqSbXoi4LdkN9Feb16S4LDlfLaR2ALUxIghZlTzo30FeKCKYWW6bEdQcx5MV2rhbUt2Rpu5uGE4jqa76Tj9ASt6/NdbETiR439OS1XQ5lbt8K146SbXlqiF+Oe7f58HAqIejS8a4v5D+jjffoFuljiGnO9o6apdn50qxWjY/EheLeKLHp63jw0T9iUsmE6Zt3eo3lFacK3ClHbkO2FRJ7bab2UNuH372FBO0xKinWJ/ygTOEA6KIHAzrwNeT4z17mFSpjoPwAwQXp8m/fGxO4QMV9j1ePrZUQyVN2eOoP98RecOEg/H5qdAjvnx4hqXHN27X291H2cU2XjHK+HLrmU59JrgVBfcsyRytJdeApZkoqLd23PmhccUZq7vfslBuwJ/oxcPuxGboECPIpmBmQ3YlxOGhjmjvOml/4HeElaacmJM7LCgzZjKc6bQ4ALm7cL98BaaZRdnqeJfd35fvyugK5en0AAR0/Wh9OllAnpSmEaWHfTLYL2uJtWNSGIpWYVzDzgdI875ys=----ATTACHMENT:----MjY2NjY1NjMxNTI4NDE1MyA0MTI3Mjc4MjI3MTQxNDU4IDY1MjU5NzgxMTUxNDY0NTE=