Skip to content

Commit 6f10698

Browse files
committed
Trait's method can be final without refactoring the tests.
See https://travis-ci.org/symfony/symfony/jobs/352734742
1 parent 2d72374 commit 6f10698

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ protected function isCsrfTokenValid(string $id, string $token): bool
390390
* @param object $message The message to dispatch
391391
*
392392
* @return mixed The result from the bus
393+
*
394+
* @final since version 4.1
393395
*/
394-
final protected function dispatch($message)
396+
protected function dispatch($message)
395397
{
396398
if (!$this->container->has('message_bus')) {
397399
throw new \LogicException('The message bus is not enabled in your application. Enable it with the "message" key in "config/packages/framework.yaml".');

0 commit comments

Comments
 (0)