Skip to content

[HttpKernel] The methods of the deprecated event should be final #31701

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

Simperfit
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR none

This PRs allows to change the return types in 5.0 of the differents methods of the deprecated events class.

As said in #31672 (comment)

@@ -31,6 +31,8 @@ public function __construct(HttpKernelInterface $kernel, callable $controller, R
/**
* Returns the current controller.
*
* @final since Symfony 4.4
Copy link
Member

Choose a reason for hiding this comment

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

sorry if that wasn't clear, but this is needed only for NON deprecated classes.

@Simperfit
Copy link
Contributor Author

Simperfit commented May 29, 2019 via email

@nicolas-grekas
Copy link
Member

Oh, I understand. Then the changelog/upgrade should mention the child (non-deprecated) classes.

HttpKernel
----------

* The method `FilterControllerArgumentsEvent::getArguments()` marked final.
Copy link
Member

Choose a reason for hiding this comment

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

missing verb: has been

@nicolas-grekas
Copy link
Member

oh wait sorry I forgot about #30323 which will allow this everywhere!

@Simperfit Simperfit deleted the made-final-to-prepare-the-cleaning-in-http-kernel branch May 29, 2019 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants