Repository: pimcore/pimcore (language: php)

Issue:
[Task]: Remove the deprecated option to pass null to the `Pimcore\Model\DataObject\Data::setIndex()` method 
### Improvement description

Please see https://github.com/pimcore/pimcore/pull/15774


Discussion / hints:

Fix patch:
diff --git a/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md b/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md
index d1620fb09f0..258caccb7e5 100644
--- a/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md
+++ b/doc/23_Installation_and_Upgrade/09_Upgrade_Notes/README.md
@@ -3,7 +3,9 @@
 ## Pimcore 12.0.0
 #### [Documents]
 - Date Editable: Removed deprecated outputFormat config. Use outputIsoFormat config instead.
-- 
+
+#### [DataObjects]
+- Parameter `$index` of method `setIndex` is not nullable anymore in `Pimcore\Model\DataObject\ClassDefinition\Data`
 
 ## Pimcore 11.6.0
 ### Elements
diff --git a/models/DataObject/ClassDefinition/Data.php b/models/DataObject/ClassDefinition/Data.php
index 04bd31cc1c6..d808ace83c4 100644
--- a/models/DataObject/ClassDefinition/Data.php
+++ b/models/DataObject/ClassDefinition/Data.php
@@ -247,16 +247,8 @@ public function getIndex(): bool
     /**
      * @return $this
      */
-    public function setIndex(?bool $index): static
+    public function setIndex(bool $index): static
     {
-        if (null === $index) {
-            trigger_deprecation(
-                'pimcore/pimcore',
-                '11.0.7',
-                sprintf('Passing null to method %s is deprecated', __METHOD__)
-            );
-            $index = false;
-        }
         $this->index = $index;
 
         return $this;


Test patch: