Skip to content
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

fix(app-framework): Specify return type of Middleware::beforeController #36341

Conversation

ChristophWurst
Copy link
Member

Resolves: n/a

Summary

The abstract class has no defined return type. Adding one makes it easier to write a correct subclass override for that method.

We can not add a PHP return type yet because that would potentially cause trouble with untyped subclasses: https://3v4l.org/dRU5Q

Checklist

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst
Copy link
Member Author

Tests are all happy. Let's do this?

Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ChristophWurst ChristophWurst merged commit 033b03d into master Jan 26, 2023
@ChristophWurst ChristophWurst deleted the fix/app-framework/middleware-before-controller-returns-void branch January 26, 2023 12:18
@blizzz blizzz mentioned this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

3 participants