Skip to content

Commit c6d1310

Browse files
jmikolaGromNaN
andcommitted
Update src/PsrLogAdapter.php
Co-authored-by: Jérôme Tamarelle <[email protected]>
1 parent 5fcdda6 commit c6d1310

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/PsrLogAdapter.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ private function __construct()
109109

110110
private static function getInstance(): self
111111
{
112-
if (self::$instance === null) {
113-
self::$instance = new self();
114-
}
115-
116-
return self::$instance;
112+
return self::$instance ??= new self();
117113
}
118114
}

0 commit comments

Comments
 (0)