Skip to content

Commit

Permalink
[CS] Replace easy occurences of ?: with ??
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Apr 7, 2021
1 parent f2204a5 commit aeedece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Package implements PackageInterface
public function __construct(VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
{
$this->versionStrategy = $versionStrategy;
$this->context = $context ?: new NullContext();
$this->context = $context ?? new NullContext();
}

/**
Expand Down

0 comments on commit aeedece

Please sign in to comment.