Skip to content

Commit a62a911

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

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
@@ -389,8 +389,10 @@ protected function isCsrfTokenValid(string $id, ?string $token): bool
389389
* @param object $message The message to dispatch
390390
*
391391
* @return mixed The result from the bus
392+
*
393+
* @final since version 4.1
392394
*/
393-
final protected function dispatch($message)
395+
protected function dispatch($message)
394396
{
395397
if (!$this->container->has('message_bus')) {
396398
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)