Skip to content

Parsing "@param" with PHP internal type throws exception #99

@mnapoli

Description

@mnapoli
    /**
     * @Inject
     * @param bool $param
     */
    public function method1($param)
    {
        ...
    }

It seems that it throws an exception. Add tests to reproduce, then fix.

Problem: how to fix?

  • have a blacklist of types (bool, int, …) but how to handle edge cases like "MyClass[string]", "String", …
  • don't throw an exception if the type doesn't match a class name: difficult to debug if typo in the class name…

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions