8000 minor #19158 [Console] LockableTrait: change visibility to private (x… · symfony/symfony@b10ca1f · GitHub
[go: up one dir, main page]

Skip to content

Commit b10ca1f

Browse files
committed
minor #19158 [Console] LockableTrait: change visibility to private (xabbuh)
This PR was merged into the 3.2-dev branch. Discussion ---------- [Console] LockableTrait: change visibility to private | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18471 (comment) | License | MIT | Doc PR | Without this change we force users to expose unnecessary extension points they may not want to provide. Commits ------- eaa3bb0 LockableTrait: change visibility to private
2 parents 358a4cc + eaa3bb0 commit b10ca1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Console/Command/LockableTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
*/
2323
trait LockableTrait
2424
{
25-
protected $lockHandler;
25+
private $lockHandler;
2626

2727
/**
2828
* Locks a command.
2929
*
3030
* @return bool
3131
*/
32-
protected function lock($name = null, $blocking = false)
32+
private function lock($name = null, $blocking = false)
3333
{
3434
if (!class_exists(LockHandler::class)) {
3535
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)
5353
/**
5454
* Releases the command lock if there is one.
5555
*/
56-
protected function release()
56+
private function release()
5757
{
5858
if ($this->lockHandler) {
5959
$this->lockHandler->release();

0 commit comments

Comments
 (0)
0