-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Just updated composer and got a newer rollbar version which has started throwing an error constantly.
`Unresolvable dependency resolving [Parameter #0 [ array $config ]] in class Rollbar\RollbarLogger
at vendor/laravel/framework/src/Illuminate/Container/Container.php:1141
1137▕ protected function unresolvablePrimitive(ReflectionParameter $parameter)
1138▕ {
1139▕ $message = "Unresolvable dependency resolving [$parameter] in class {$parameter->getDeclaringClass()->getName()}";
1140▕
➜ 1141▕ throw new BindingResolutionException($message);
`
Have found the solution is to simply include the ROLLBAR_TOKEN value in my .env file.
But this breaks a common usecase that was previously recommended, not sure if actually by rollbar or elsewhere - which was not setting the token to avoid logging errors in development environment.
Looking into docs it seems that conditional loading is a workaround, but this is adding lots of extra complexity to something that previously just worked.