Skip to content

Commit 2ee18ad

Browse files
committed
fix lock call
1 parent 4a909e4 commit 2ee18ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test-application.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959

6060
steps:
6161
- name: Checkout project
62-
uses: actions/checkout@v2
62+
uses: actions/checkout@v4
6363

6464
# default java installation not able to run jackrabbit. use same as jackalope-jackrabbit action
6565
- name: Install and configure Java
66-
uses: actions/setup-java@v3
66+
uses: actions/setup-java@v4
6767
with:
6868
distribution: temurin
6969
java-version: '8'
@@ -82,7 +82,7 @@ jobs:
8282

8383
- name: Cache Jackrabbit
8484
id: cache-jackrabbit
85-
uses: actions/cache@v3
85+
uses: actions/cache@v4
8686
with:
8787
path: vendor/jackalope/jackalope-jackrabbit/bin/jackrabbit-standalone-*
8888
key: jackrabbit

src/PHPCR/Shell/Console/Command/Phpcr/LockLockCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function configure(): void
2727
$this->addArgument('path', InputArgument::REQUIRED, 'Path of node to be locked');
2828
$this->addOption('deep', null, InputOption::VALUE_NONE, 'If given this lock will apply to this node and all its descendants; if not, it applies only to this node.');
2929
$this->addOption('session-scoped', null, InputOption::VALUE_NONE, 'If given, this lock expires with the current session; if not it expires when explicitly or automatically unlocked for some other reason');
30-
$this->addOption('timeout', null, InputOption::VALUE_REQUIRED, 'Desired lock timeout in seconds (servers are free to ignore this value). If not used lock will not timeout');
30+
$this->addOption('timeout', null, InputOption::VALUE_REQUIRED, 'Desired lock timeout in seconds (servers are free to ignore this value). If not used lock will not timeout', PHP_INT_MAX);
3131
$this->addOption('owner-info', null, InputOption::VALUE_REQUIRED, ' string containing owner information supplied by the client; servers are free to ignore this value. If none is specified, the implementation chooses one (i.e. user name of current backend authentication credentials');
3232
$this->setHelp(
3333
<<<'HERE'

0 commit comments

Comments
 (0)