Skip to content

Commit c537472

Browse files
[3.4] CS fixes
1 parent ce180b8 commit c537472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Store/SemaphoreStoreTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ public function testResourceRemoval()
5151
private function getOpenedSemaphores()
5252
{
5353
if ('Darwin' === PHP_OS) {
54-
$lines = explode(PHP_EOL, trim(`ipcs -s`));
54+
$lines = explode(PHP_EOL, trim(shell_exec('ipcs -s')));
5555
if (-1 === $start = array_search('Semaphores:', $lines)) {
5656
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore list, got '.implode(PHP_EOL, $lines));
5757
}
5858

5959
return \count(\array_slice($lines, ++$start));
6060
}
6161

62-
$lines = explode(PHP_EOL, trim(`LC_ALL=C ipcs -su`));
62+
$lines = explode(PHP_EOL, trim(shell_exec('LC_ALL=C ipcs -su')));
6363
if ('------ Semaphore Status --------' !== $lines[0]) {
6464
throw new \Exception('Failed to extract list of opened semaphores. Expected a Semaphore status, got '.implode(PHP_EOL, $lines));
6565
}

0 commit comments

Comments
 (0)