Skip to content

Commit 686b0f7

Browse files
mohsenetmMohsenEtemadi
andauthored
style: Use null coalescing assignment (??=) for cleaner and more concise code (#55823)
Co-authored-by: MohsenEtemadi <[email protected]>
1 parent 62b41f6 commit 686b0f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Auth/AuthManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function guard($name = null)
6666
{
6767
$name = $name ?: $this->getDefaultDriver();
6868

69-
return $this->guards[$name] ?? $this->guards[$name] = $this->resolve($name);
69+
return $this->guards[$name] ??= $this->resolve($name);
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)