To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAGOJM6KCWbKmDfZF%3DWX25A9Qy3Mk5qHUbsWSr0GdY8%3D7jKZobA%40mail.gmail.com.
Colin, because it doesn't.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAJaRsPv%2BUZ%3DUdo2piHC6UBrHx44NVrmQYRt2xN9p68CgoTuQ2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAGOJM6%2B2gv0c9jm44Aa1Cp8BZfWXS-SyaC7CE9TcNK4xvuxRww%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/F92B068D-C3BD-4FC6-88F9-5AA9C38D2821%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
That pull request update all `@return self` annotations to `@return static`. To
summarize the discussion, `@return static` is interpreted by both phpDoc and
most popular IDEs in such a way as to resolve to the class in which invocation
occurs, vs `@return self`, which resolves to the class in which it was defined.
Essentially, `@return self` is problematic when used in interfaces with
inheritance (such as `RequestInterface` inheriting from `MessageInterface`, or
`ServerRequestInterface` inheriting from `RequestInterface`, as the return value
might be of a looser type.