Skip to content

Commit a4642d6

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Simplify some code with null coalesce operator
2 parents bcdda96 + 896bfee commit a4642d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/WorkerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function get(): iterable
292292
{
293293
$val = array_shift($this->deliveriesOfEnvelopes);
294294

295-
return null === $val ? [] : $val;
295+
return $val ?? [];
296296
}
297297

298298
public function ack(Envelope $envelope): void

0 commit comments

Comments
 (0)