We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5eaf42 commit e2fdcd7Copy full SHA for e2fdcd7
src/Illuminate/Support/Manager.php
@@ -75,11 +75,7 @@ public function driver($driver = null)
75
// If the given driver has not been created before, we will create the instances
76
// here and cache it so we can return it next time very quickly. If there is
77
// already a driver created by this name, we'll just return that instance.
78
- if (! isset($this->drivers[$driver])) {
79
- $this->drivers[$driver] = $this->createDriver($driver);
80
- }
81
-
82
- return $this->drivers[$driver];
+ return $this->drivers[$driver] ??= $this->createDriver($driver);
83
}
84
85
/**
0 commit comments