If a block has an empty $attributes array (e.g. a normal paragraph),
then reading attributes saved in the HTML did not work. This was
because the conversion of an empty array to an object did not work.
PHP ≥ 8.0 no longer crashes when innerHTML is an empty string. This
problem was only visible once the empty array conversion was fixed.
Fixes:
$attributes
array (e.g. a normal paragraph), then reading attributes saved in the HTML did not work. This was because the conversion of an empty array to an object did not work.innerHTML
is an empty string. This problem was only visible once the empty array conversion was fixed.