Skip to content

Commit 77271a4

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: [CS] Replace easy occurences of ?: with ??
2 parents 584dc61 + 1459484 commit 77271a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Command/CacheClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(CacheClearerInterface $cacheClearer, Filesystem $fil
4646
parent::__construct();
4747

4848
$this->cacheClearer = $cacheClearer;
49-
$this->filesystem = $filesystem ?: new Filesystem();
49+
$this->filesystem = $filesystem ?? new Filesystem();
5050
}
5151

5252
/**

Routing/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(ContainerInterface $container, $resource, array $opt
4444
{
4545
$this->container = $container;
4646
$this->resource = $resource;
47-
$this->context = $context ?: new RequestContext();
47+
$this->context = $context ?? new RequestContext();
4848
$this->logger = $logger;
4949
$this->setOptions($options);
5050

0 commit comments

Comments
 (0)