Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api:doc command not working #1678

Open
zorn-v opened this issue Sep 13, 2019 · 0 comments
Open

api:doc command not working #1678

zorn-v opened this issue Sep 13, 2019 · 0 comments

Comments

@zorn-v
Copy link

zorn-v commented Sep 13, 2019

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 5.8.35
Package version 2.3.0
PHP version 7.3.8

Actual Behaviour

With followed docblock

    /**
     * Login user
     *
     * Login user with a `username` and `password`
     *
     * @Post("/auth/login")
     */
    public function login(Request $request)

there is exception in api:doc command


   InvalidArgumentException  : Expected a string. Got: boolean

  at vendor/webmozart/assert/src/Assert.php:1696
    1692|      * @param string $message
    1693|      */
    1694|     protected static function reportInvalidArgument($message)
    1695|     {
  > 1696|         throw new InvalidArgumentException($message);
    1697|     }
    1698|
    1699|     private function __construct()
    1700|     {

  Exception trace:

  1   Webmozart\Assert\Assert::reportInvalidArgument("Expected a string. Got: boolean")
      vendor/webmozart/assert/src/Assert.php:206
      
  2   Webmozart\Assert\Assert::string("")
      vendor/webmozart/assert/src/Assert.php:219

  3   Webmozart\Assert\Assert::stringNotEmpty()
      vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php:84

  4   phpDocumentor\Reflection\DocBlockFactory::create()
      vendor/dingo/blueprint/src/RestResource.php:144
      
  5   Dingo\Blueprint\RestResource::getDescription()
      vendor/dingo/blueprint/src/Blueprint.php:148
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant