Skip to content

Return static in methods that return self<T>#24

Open
vudaltsov wants to merge 1 commit intoamphp:1.xfrom
vudaltsov:return-static
Open

Return static in methods that return self<T>#24
vudaltsov wants to merge 1 commit intoamphp:1.xfrom
vudaltsov:return-static

Conversation

@vudaltsov
Copy link
Copy Markdown

This is required for PHPStan. Otherwise it considers method's result to be self<mixed>. Alternatively I can add phpdocs with self<T>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant