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 d9cccd3 commit 67f027bCopy full SHA for 67f027b
src/ProviderAndDumperAggregator.php
@@ -251,7 +251,8 @@ protected function getProvidersFromConfiguration(Collection $providers) : array
251
if ($provider === "Geocoder\Provider\Chain\Chain") {
252
$chainProvider = $reflection->newInstance($arguments);
253
254
- if (in_array(LoggerAwareTrait::class, class_uses($chainProvider))
+ if (class_exists(Logger::class)
255
+ && in_array(LoggerAwareTrait::class, class_uses($chainProvider))
256
&& app(Logger::class) !== null
257
) {
258
$chainProvider->setLogger(app(Logger::class));
0 commit comments