Skip to content

Commit

Permalink
Use null coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Jul 17, 2020
1 parent 12f22fa commit 2a061cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/src/Application/BaseApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ abstract class BaseApplication extends AbstractApplication implements Dispatcher
*/
public function __construct(Input $input = null, Registry $config = null)
{
$this->input = $input instanceof Input ? $input : new Input;
$this->config = $config instanceof Registry ? $config : new Registry;
$this->input = $input ?? new Input;
$this->config = $config ?? new Registry;

$this->initialise();
}
Expand Down

0 comments on commit 2a061cf

Please sign in to comment.