diff --git a/src/SocialiteManager.php b/src/SocialiteManager.php index 8815850..d7c0966 100644 --- a/src/SocialiteManager.php +++ b/src/SocialiteManager.php @@ -130,7 +130,8 @@ public function driver($driver = null) */ protected function createDriver($driver) { - if ($provider = $this->initialDrivers[$driver]) { + if (isset($this->initialDrivers[$driver])) { + $provider = $this->initialDrivers[$driver]; $provider = __NAMESPACE__.'\\Providers\\'.$provider.'Provider'; return $this->buildProvider($provider, $this->formatConfig($this->config->get($driver)));