8000 Return type of ReflectionClass creation · Issue #4078 · phpstan/phpstan · GitHub
[go: up one dir, main page]

Skip to content

Return type of ReflectionClass creation #4078

@MP-okui

Description

@MP-okui

Support question

What should I do with @return when returning the \ReflectionClass of a generic class?

https://phpstan.org/r/016e8878-a594-448f-b449-cc0a49214e26

I tried the following:

  • @return \ReflectionClass<Bar>
  • @return \ReflectionClass<Bar<T>>
  • @template T + @return \ReflectionClass<Bar>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0