Skip to content

Commit

Permalink
Merge pull request #320 from peter279k/shorten_null_operator
Browse files Browse the repository at this point in the history
Apply the shorten null coalescing operator
  • Loading branch information
freekmurze authored Sep 20, 2023
2 parents 26c70be + 4407cee commit 0c0b296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ray.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function markdown(string $markdown): self
*/
public function env(?array $onlyShowNames = null, ?string $filename = null): self
{
$filename = $filename ?? app()->environmentFilePath();
$filename ??= app()->environmentFilePath();

$payload = new EnvironmentPayload($onlyShowNames, $filename);

Expand Down

0 comments on commit 0c0b296

Please sign in to comment.