From 2f91e30ea54798f66f759e25f3e871f5a3416e5b Mon Sep 17 00:00:00 2001 From: Nicolae Serban Date: Thu, 23 Oct 2025 07:23:20 +0300 Subject: [PATCH] [Console][LockableTrait] Remove parent::__construct() from the example which shows how to inject your own LockFactory In this PR https://github.com/symfony/symfony-docs/pull/21507/files , when pointing out that constructor property promotion should not be used when injecting $lockFactory, I also wrongly introduced a `parent::__construct()` call. As in the current example attribute is used and the example command class is no longer extending `Symfony\Component\Console\Command\Command`, the call to the constructor of the parent class is actually wrong. I just wanted to fix this and to apologize for any inconvenience I caused with the back-and-forth related to this issue. --- console/lockable_trait.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/console/lockable_trait.rst b/console/lockable_trait.rst index 719b3ef60fd..005c6c03047 100644 --- a/console/lockable_trait.rst +++ b/console/lockable_trait.rst @@ -60,8 +60,6 @@ a ``$lockFactory`` property with your own lock factory:: public function __construct(LockFactory $lockFactory) { $this->lockFactory = $lockFactory; - - parent::__construct(); } // ...