Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Add return types - batch 1/n#42504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
d07ae36 to81bf1f8Comparenicolas-grekas commentedAug 12, 2021
📗 (psalm failure are false-positives here.) |
| * @return CacheItemPoolInterface | ||
| */ | ||
| publicstaticfunctioncreate(string$file,CacheItemPoolInterface$fallbackPool) | ||
| publicstaticfunctioncreate(string$file,CacheItemPoolInterface$fallbackPool):CacheItemPoolInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| publicstaticfunction create(string$file,CacheItemPoolInterface$fallbackPool):CacheItemPoolInterface | |
| publicstaticfunction create(string$file,CacheItemPoolInterface$fallbackPool):static |
I don't quite understand why the previously annotated return type was so wide, tbh.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
81bf1f8 to1564887Compare
Uh oh!
There was an error while loading.Please reload this page.
Extracted from#42496 for components that shouldn't be extended very often.