Skip to content

Commit c1af1f9

Browse files
committed
fix "strategy" typo
1 parent 4c451f2 commit c1af1f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/mutex/MutexConcurrencyTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ public function provideMutexFactories()
232232
'flockWithTimoutPcntl' => [function ($timeout = 3) use ($filename): Mutex {
233233
$file = fopen($filename, 'w');
234234
$lock = Liberator::liberate(new FlockMutex($file, $timeout));
235-
$lock->stategy = FlockMutex::STRATEGY_PCNTL; // @phpstan-ignore-line
235+
$lock->strategy = FlockMutex::STRATEGY_PCNTL; // @phpstan-ignore-line
236236

237237
return $lock->popsValue();
238238
}],
239239

240240
'flockWithTimoutBusy' => [function ($timeout = 3) use ($filename): Mutex {
241241
$file = fopen($filename, 'w');
242242
$lock = Liberator::liberate(new FlockMutex($file, $timeout));
243-
$lock->stategy = FlockMutex::STRATEGY_BUSY; // @phpstan-ignore-line
243+
$lock->strategy = FlockMutex::STRATEGY_BUSY; // @phpstan-ignore-line
244244

245245
return $lock->popsValue();
246246
}],

tests/mutex/MutexTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public function provideMutexFactories()
5454
'flockWithTimoutPcntl' => [function (): Mutex {
5555
$file = fopen(vfsStream::url('test/lock'), 'w');
5656
$lock = Liberator::liberate(new FlockMutex($file, 3));
57-
$lock->stategy = FlockMutex::STRATEGY_PCNTL; // @phpstan-ignore-line
57+
$lock->strategy = FlockMutex::STRATEGY_PCNTL; // @phpstan-ignore-line
5858

5959
return $lock->popsValue();
6060
}],
6161

6262
'flockWithTimoutBusy' => [function ($timeout = 3): Mutex {
6363
$file = fopen(vfsStream::url('test/lock'), 'w');
6464
$lock = Liberator::liberate(new FlockMutex($file, 3));
65-
$lock->stategy = FlockMutex::STRATEGY_BUSY; // @phpstan-ignore-line
65+
$lock->strategy = FlockMutex::STRATEGY_BUSY; // @phpstan-ignore-line
6666

6767
return $lock->popsValue();
6868
}],

0 commit comments

Comments
 (0)