Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Dec 24, 2023
1 parent 2359685 commit b056cdd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/admin-block-editor/src/EditorJsHelper.php
Expand Up @@ -30,10 +30,6 @@ public static function decode(string $raw): object
if (! property_exists($block, 'type') || ! \is_string($block->type)) {
throw new \Exception('Block must have a type (string)');
}

if (! property_exists($block, 'data') || ! \is_object($block->data)) {
throw new \Exception('Block must have a data (object)');
}
}

return $data; // @phpstan-ignore-line
Expand Down

0 comments on commit b056cdd

Please sign in to comment.