Repository: pimcore/pimcore (language: php)

Issue:
[Data Objects] UrlSlug data-type: fix return/param types
### Improvement description

#17363 can be reverted. 

Initial topic see: #17281 


Discussion / hints:

Fix patch:
diff --git a/models/DataObject/ClassDefinition/Data/UrlSlug.php b/models/DataObject/ClassDefinition/Data/UrlSlug.php
index 3896847a7c2..600ff8359d0 100644
--- a/models/DataObject/ClassDefinition/Data/UrlSlug.php
+++ b/models/DataObject/ClassDefinition/Data/UrlSlug.php
@@ -554,12 +554,12 @@ public function supportsInheritance(): bool
 
     public function getParameterTypeDeclaration(): ?string
     {
-        return '?array';
+        return 'array';
     }
 
     public function getReturnTypeDeclaration(): ?string
     {
-        return '?array';
+        return 'array';
     }
 
     public function getPhpdocInputType(): ?string


Test patch: