Skip to content

Method "does not specify its types: T" #4722

Answered by ondrejmirtes
spud asked this question in Support
Discussion options

You must be logged in to vote

With @return static or @return $this it's fine: https://phpstan.org/r/a6a846cd-1f8d-4ac5-a567-e02918918622

The most straightforward way is also self<T>.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@spud
Comment options

@ondrejmirtes
Comment options

@spud
Comment options

Answer selected by ondrejmirtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants