Explorar o código

Set enumValues correctly

Shalvah hai 1 ano
pai
achega
4c49e81e0a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)) {