Przeglądaj źródła

Set enumValues correctly

Shalvah 1 rok temu
rodzic
commit
4c49e81e0a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/Attributes/GenericParam.php

+ 2 - 2
src/Attributes/GenericParam.php

@@ -29,10 +29,10 @@ class GenericParam
         ];
     }
 
-    protected function getEnumValues()
+    protected function getEnumValues(): array
     {
         if (!$this->enum) {
-            return null;
+            return [];
         }
 
         if (is_array($this->enum)) {