Skip to content

Commit 1fa4102

Browse files
committed
rename method
1 parent 5a5d04b commit 1fa4102

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Exceptions/DriverMissingConfigurationException.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class DriverMissingConfigurationException extends InvalidArgumentException
99
/**
1010
* Create a new exception for a missing configuration.
1111
*
12-
* @param string $driver
12+
* @param string $provider
1313
* @param array<int, string> $keys
1414
* @return static
1515
*/
16-
public static function missingConfig($driver, $keys)
16+
public static function make($provider, $keys)
1717
{
18-
return new static("Missing required configuration keys [" . implode(', ', $keys) . "] for [{$driver}] OAuth provider.");
18+
return new static("Missing required configuration keys [" . implode(', ', $keys) . "] for [{$provider}] OAuth provider.");
1919
}
2020
}

src/SocialiteManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public function buildProvider($provider, $config)
243243
$missingKeys = array_diff($requiredKeys, array_keys($config ?? []));
244244

245245
if (! empty($missingKeys)) {
246-
throw DriverMissingConfigurationException::missingConfig($provider, $missingKeys);
246+
throw DriverMissingConfigurationException::make($provider, $missingKeys);
247247
}
248248

249249
return (new $provider(

0 commit comments

Comments
 (0)