Skip to content

Commit

Permalink
Apply the shorten null coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Sep 20, 2023
1 parent 26c70be commit 4407cee
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 4407cee

Please sign in to comment.