diff --git a/src/Symfony/Component/Console/Command/LockableTrait.php b/src/Symfony/Component/Console/Command/LockableTrait.php index 30f8846768bd..05ec27c63c49 100644 --- a/src/Symfony/Component/Console/Command/LockableTrait.php +++ b/src/Symfony/Component/Console/Command/LockableTrait.php @@ -22,14 +22,14 @@ */ trait LockableTrait { - protected $lockHandler; + private $lockHandler; /** * Locks a command. * * @return bool */ - protected function lock($name = null, $blocking = false) + private function lock($name = null, $blocking = false) { if (!class_exists(LockHandler::class)) { throw new RuntimeException('To enable the locking feature you must install the symfony/filesystem component.'); @@ -53,7 +53,7 @@ protected function lock($name = null, $blocking = false) /** * Releases the command lock if there is one. */ - protected function release() + private function release() { if ($this->lockHandler) { $this->lockHandler->release();