From 9b6bd6d7ed06900c5df44e4b873e0da889fd2d00 Mon Sep 17 00:00:00 2001
From: arunsahijpal <arunsahijpal111@gmail.com>
Date: Fri, 10 Jan 2025 16:46:41 +0530
Subject: [PATCH 1/2] Issue #3498301: Added null types.

---
 src/Form/ManageComponentAttributesForm.php | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/Form/ManageComponentAttributesForm.php b/src/Form/ManageComponentAttributesForm.php
index de265cc..740b31b 100644
--- a/src/Form/ManageComponentAttributesForm.php
+++ b/src/Form/ManageComponentAttributesForm.php
@@ -97,15 +97,20 @@ class ManageComponentAttributesForm extends FormBase {
    *   The current state of the form.
    * @param \Drupal\layout_builder\SectionStorageInterface $section_storage
    *   The section storage being configured.
-   * @param int $delta
+   * @param ?int $delta
    *   The original delta of the section.
-   * @param string $uuid
+   * @param ?string $uuid
    *   The UUID of the block being updated.
    *
    * @return array
    *   The form array.
    */
-  public function buildForm(array $form, FormStateInterface $form_state, SectionStorageInterface $section_storage = NULL, $delta = NULL, $uuid = NULL) {
+  public function buildForm(
+    array $form,
+    FormStateInterface $form_state,
+    ?SectionStorageInterface $section_storage = NULL,
+    ?int $delta = NULL,
+    ?string $uuid = NULL) {
     $parameters = array_slice(func_get_args(), 2);
     foreach ($parameters as $parameter) {
       if (is_null($parameter)) {
@@ -398,5 +403,4 @@ class ManageComponentAttributesForm extends FormBase {
     }
     return (int) $this->delta;
   }
-
 }
-- 
GitLab


From 9513c40e85ba5f4c40d0e8468a1d6999b4f36025 Mon Sep 17 00:00:00 2001
From: arunsahijpal <arunsahijpal111@gmail.com>
Date: Mon, 13 Jan 2025 10:49:21 +0530
Subject: [PATCH 2/2] Issue #3498301: Added null type.

---
 src/Form/ManageComponentAttributesForm.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Form/ManageComponentAttributesForm.php b/src/Form/ManageComponentAttributesForm.php
index 740b31b..2949220 100644
--- a/src/Form/ManageComponentAttributesForm.php
+++ b/src/Form/ManageComponentAttributesForm.php
@@ -95,7 +95,7 @@ class ManageComponentAttributesForm extends FormBase {
    *   An associative array containing the structure of the form.
    * @param \Drupal\Core\Form\FormStateInterface $form_state
    *   The current state of the form.
-   * @param \Drupal\layout_builder\SectionStorageInterface $section_storage
+ * @param \Drupal\layout_builder\SectionStorageInterface|null $section_storage
    *   The section storage being configured.
    * @param ?int $delta
    *   The original delta of the section.
-- 
GitLab