diff --git a/src/Logging/EventLogger.php b/src/Logging/EventLogger.php index 1f4085b7a3..c1c34a3002 100644 --- a/src/Logging/EventLogger.php +++ b/src/Logging/EventLogger.php @@ -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; }