We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41e1d90 + eb39726 commit f035fcbCopy full SHA for f035fcb
console/lockable_trait.rst
@@ -55,8 +55,13 @@ a ``$lockFactory`` property with your own lock factory::
55
{
56
use LockableTrait;
57
58
- public function __construct(private LockFactory $lockFactory)
+ // don't use PHP constructor property promotion here because the
59
+ // LockableTrait already defines the `$lockFactory` property in this class
60
+ public function __construct(LockFactory $lockFactory)
61
62
+ $this->lockFactory = $lockFactory;
63
+
64
+ parent::__construct();
65
}
66
67
// ...
0 commit comments