From 9b45342a0693e282e4295f8bf1f759a30261a6d3 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Mon, 4 Jul 2022 12:24:58 +0100 Subject: [PATCH] FIX: Add missing casting for Form::getAttributesHTML (fixes #10386) --- src/Forms/Form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 655a5d1b7..fcc633646 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -232,7 +232,8 @@ class Form extends ViewableData implements HasRequestHandler * @var array */ private static $casting = [ - 'AttributesHTML' => 'HTMLFragment', + 'AttributesHTML' => 'HTMLFragment', // property $AttributesHTML version + 'getAttributesHTML' => 'HTMLFragment', // method $getAttributesHTML($arg) version 'FormAttributes' => 'HTMLFragment', 'FormName' => 'Text', 'Legend' => 'HTMLFragment',