Skip to content

Feature/type for controller result factory #338

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

pmarki
Copy link

@pmarki pmarki commented Mar 5, 2025

Magento\Framework\Controller\ResultFactory returns type based on passed parameter, all of them will have custom methods that exist only in this specific class, knowing the correct type will prevent PHPStan from raising errors that given method doesn't exist on ResponseInterface.

Great work btw 👍

@shochdoerfer shochdoerfer added this to the 0.41.0 milestone Mar 5, 2025
@shochdoerfer
Copy link
Member

Thx for your first contribution! Very much appreciated.

@shochdoerfer shochdoerfer merged commit b233aa9 into bitExpert:master Mar 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants