Skip to content

Commit ea5d021

Browse files
committed
[CS] Replace easy occurences of ?: with ??
1 parent 93fc00b commit ea5d021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Session/Session.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ class Session implements SessionInterface, \IteratorAggregate, \Countable
3838

3939
public function __construct(SessionStorageInterface $storage = null, AttributeBagInterface $attributes = null, FlashBagInterface $flashes = null)
4040
{
41-
$this->storage = $storage ?: new NativeSessionStorage();
41+
$this->storage = $storage ?? new NativeSessionStorage();
4242

43-
$attributes = $attributes ?: new AttributeBag();
43+
$attributes = $attributes ?? new AttributeBag();
4444
$this->attributeName = $attributes->getName();
4545
$this->registerBag($attributes);
4646

47-
$flashes = $flashes ?: new FlashBag();
47+
$flashes = $flashes ?? new FlashBag();
4848
$this->flashName = $flashes->getName();
4949
$this->registerBag($flashes);
5050
}

0 commit comments

Comments
 (0)