GetFromInlineValidatorBase::extractEnumClassFromArrayItem Argument #1 ($arrayItem) must be of type PhpParser\\Node\\ArrayItem, PhpParser\\Node\\Expr\\ArrayItem given #832
Labels
bug
Something isn't working
Scribe version
4.34.0
PHP version
8.1
Framework
Laravel
Framework version
10.46.0
Scribe config
What happened?
I ran php artisan scribe:generate and then I get an error:
Knuckles\Scribe\Extracting\Strategies\GetFromInlineValidatorBase::extractEnumClassFromArrayItem(): Argument #1 ($arrayItem) must be of type PhpParser\Node\ArrayItem, PhpParser\Node\Expr\ArrayItem given, called in vendor/knuckleswtf/scribe/src/Extracting/Strategies/GetFromInlineValidatorBase.php on line 88
at vendor/knuckleswtf/scribe/src/Extracting/Strategies/GetFromInlineValidatorBase.php:127
123▕
124▕ return [$rules, $customParameterData];
125▕ }
126▕
➜ 127▕ protected function extractEnumClassFromArrayItem(Node\ArrayItem $arrayItem): ?string
128▕ {
129▕ $args = [];
130▕
131▕ // Enum rule with the form "new Enum(...)"
Docs
The text was updated successfully, but these errors were encountered: