Skip to content

Commit fdfad3c

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: [CS] Replace easy occurences of ?: with ??
2 parents b59a584 + 7dc7f4f commit fdfad3c

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
@@ -39,14 +39,14 @@ class Session implements SessionInterface, \IteratorAggregate, \Countable
3939

4040
public function __construct(SessionStorageInterface $storage = null, AttributeBagInterface $attributes = null, FlashBagInterface $flashes = null, callable $usageReporter = null)
4141
{
42-
$this->storage = $storage ?: new NativeSessionStorage();
42+
$this->storage = $storage ?? new NativeSessionStorage();
4343
$this->usageReporter = $usageReporter;
4444

45-
$attributes = $attributes ?: new AttributeBag();
45+
$attributes = $attributes ?? new AttributeBag();
4646
$this->attributeName = $attributes->getName();
4747
$this->registerBag($attributes);
4848

49-
$flashes = $flashes ?: new FlashBag();
49+
$flashes = $flashes ?? new FlashBag();
5050
$this->flashName = $flashes->getName();
5151
$this->registerBag($flashes);
5252
}

0 commit comments

Comments
 (0)