From 4407cee52b006d112baa6adb01c7a115dec1858a Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 20 Sep 2023 10:42:24 +0800 Subject: [PATCH] Apply the shorten null coalescing operator --- src/Ray.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ray.php b/src/Ray.php index 964135b..75cdc81 100644 --- a/src/Ray.php +++ b/src/Ray.php @@ -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);