Skip to content

Commit

Permalink
Use null coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgsowa committed Feb 13, 2024
1 parent f1d0622 commit a517523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ private static function generateBaseline(
fwrite(STDERR, 'Writing error baseline to file...' . PHP_EOL);

$errorBaseline = is_string($options['set-baseline']) ? $options['set-baseline'] :
($config->error_baseline ?: Config::DEFAULT_BASELINE_NAME);
($config->error_baseline ?? Config::DEFAULT_BASELINE_NAME);

try {
$issue_baseline = ErrorBaseline::read(
Expand Down

0 comments on commit a517523

Please sign in to comment.