Skip to content

Commit

Permalink
Set enumValues correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Aug 25, 2023
1 parent 8daa74c commit 4c49e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Attributes/GenericParam.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public function toArray()
];
}

protected function getEnumValues()
protected function getEnumValues(): array
{
if (!$this->enum) {
return null;
return [];
}

if (is_array($this->enum)) {
Expand Down

0 comments on commit 4c49e81

Please sign in to comment.