Closed HerrLevin closed 3 years ago
Hi @HerrLevin, Herodot is still in active development currently, so I'm not too surprised there's some hiccups.. This seems to originate from the caching though, so by passing --force
to the generate command, it should properly generate the OpenAPI docs.
I'm looking into this now, thanks for reporting!
Fixed in c5eea95
Oh nice, thank you!
When I run
php artisan herodot:generate
herodot fails with an error that a__PHP_Incomplete_Class
was given instead of aMatchory\Herodot\Contracts\Endpoint
. Trying to fix it myself I realized that all routes retrieved inSupport/Generator.php
via$endpoints = $this->processRoutes($routes);
are of type__PHP_Incomplete_Class(Matchory\Herodot\Support\Structures\Endpoint)
.I'm using Laravel 8.24.0 with PHP 8.0.1
This is my console output + stack trace of the logs