Skip to content

Commit 1459484

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [CS] Replace easy occurences of ?: with ??
2 parents 8a5cad8 + 75ee4be commit 1459484

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
@@ -45,7 +45,7 @@ public function __construct(CacheClearerInterface $cacheClearer, Filesystem $fil
4545
parent::__construct();
4646

4747
$this->cacheClearer = $cacheClearer;
48-
$this->filesystem = $filesystem ?: new Filesystem();
48+
$this->filesystem = $filesystem ?? new Filesystem();
4949
}
5050

5151
/**

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)