@@ -62,8 +62,11 @@ abstract class AbstractJsonFormsForm extends FormBase {
6262 * @return static
6363 */
6464 public static function create (ContainerInterface $ container ) {
65- return new static ($ container ->get (FormArrayFactoryInterface::class),
66- $ container ->get (FormValidatorInterface::class), $ container ->get (FormValidationMapperInterface::class));
65+ return new static (
66+ $ container ->get (FormArrayFactoryInterface::class),
67+ $ container ->get (FormValidatorInterface::class),
68+ $ container ->get (FormValidationMapperInterface::class)
69+ );
6770 }
6871
6972 public function __construct (
@@ -260,7 +263,7 @@ protected function doGetSubmittedData(FormStateInterface $formState): array {
260263 *
261264 * phpcs:disable Generic.Files.LineLength.TooLong
262265 */
263- private function determineLimitValidationErrors (FormStateInterface & $ formState ): ?array {
266+ private function determineLimitValidationErrors (FormStateInterface $ formState ): ?array {
264267 // While this element is being validated, it may be desired that some
265268 // calls to \Drupal\Core\Form\FormStateInterface::setErrorByName() be
266269 // suppressed and not result in a form error, so that a button that
@@ -284,7 +287,7 @@ private function determineLimitValidationErrors(FormStateInterface &$formState):
284287 // setting the #limit_validation_errors property. For button element
285288 // types, #limit_validation_errors defaults to FALSE, so that full
286289 // validation is their default behavior.
287- elseif ($ triggering_element && !isset ($ triggering_element ['#limit_validation_errors ' ]) && !$ formState ->isSubmitted ()) {
290+ elseif (NULL !== $ triggering_element && !isset ($ triggering_element ['#limit_validation_errors ' ]) && !$ formState ->isSubmitted ()) {
288291 return [];
289292 }
290293 // As an extra security measure, explicitly turn off error suppression if
0 commit comments