Closed
Description
Having laravel 8.5.8 installed and LRD in 1.22 running into the error:
$ php artisan lrd:generate
Error
Call to undefined method ReflectionUnionType::getName()
at C:\Users\****\****\vendor\rakutentech\laravel-request-docs\src\LaravelRequestDocs.php:126
122▕ foreach ($params as $param) {
123▕ if (!$param->getType()) {
124▕ continue;
125▕ }
➜ 126▕ $requestClassName = $param->getType()->getName();
127▕ $requestClass = null;
128▕ try {
129▕ $requestClass = new $requestClassName();
130▕ } catch (Throwable $th) {
1 C:\Users\****\****\vendor\rakutentech\laravel-request-docs\src\LaravelRequestDocs.php:18
Rakutentech\LaravelRequestDocs\LaravelRequestDocs::appendRequestRules()
2 C:\Users\****\****\vendor\rakutentech\laravel-request-docs\src\Commands\LaravelRequestDocsCommand.php:30
Rakutentech\LaravelRequestDocs\LaravelRequestDocs::getDocs()
php artisan route:list
is emitting every single route correctly. I haven't changed anything in config, project etc.
Metadata
Metadata
Assignees
Labels
No labels