Issue #3323679 by CbStuart: PHP 8.1 TypeError: array_merge(): Argument #2 must be of type array, Drupal\Core\Template\AttributeArray given in array_merge()
Closes #3323679