Skip to content

Unable to create method typed array with docblock Object[]  #60

Description

@3ehu

This line:

https://github.com/gossi/php-code-generator/blob/d67b8f9d775710e9401fc1a9306c7b7797860a65/src/model/parts/TypeDocblockGeneratorPart.php#L52

Overwriting @return tag if you define method type.

This causes that I'm unable to generate method

/**

  • @return Bar[]
    */
    function Foo(): array

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions