Skip to content

Commit

Permalink
Add variant default to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-de-wit committed Jul 26, 2021
1 parent d0a4058 commit 30f6f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Directives/VariantDirective.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function manipulateArgDefinition(
$model = new $modelFQN();
$attribute = Str::snake($parentField->name->value);

$availableVariants = $model->{$attribute}->variants();
$availableVariants = $model->{$attribute}->variants(true);

foreach ($availableVariants as $variant) {
if (preg_match('/^[0-9]/', $variant)) {
Expand Down

0 comments on commit 30f6f19

Please sign in to comment.