Skip to content

Commit

Permalink
Also do not use LOCK_EX on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 6, 2024
1 parent 1e4641d commit ee21897
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Logging/EventLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public function trace(Event $event): void

$flags = FILE_APPEND;

if (PHP_OS_FAMILY !== 'Windows' || $this->path !== 'php://stdout') {
if (!(PHP_OS_FAMILY === 'Windows' || PHP_OS_FAMILY === 'Darwin') ||
$this->path !== 'php://stdout') {
$flags |= LOCK_EX;
}

Expand Down

0 comments on commit ee21897

Please sign in to comment.