Skip to content

Unresolvable Dependency in Rollbar\RollbarLogger Since v8.1.0 #168

@closca

Description

@closca

Since upgrading to version 8.1.0, we have started receiving the following error:

Unresolvable dependency resolving [Parameter #0 [ <required> array $config ]] in class Rollbar\RollbarLogger {"exception":"[object] (Illuminate\Contracts\Container\BindingResolutionException(code: 0): Unresolvable dependency resolving [Parameter #0 [ <required> array $config ]] in class Rollbar\RollbarLogger at

This occurs even though Rollbar is not enabled in our configuration or .env file.

Expected Behavior

  • The application should not attempt to instantiate Rollbar\RollbarLogger since Rollbar is disabled.
  • No dependency resolution errors related to Rollbar should occur.

Actual Behavior

  • The application throws an unresolvable dependency error related to Rollbar\RollbarLogger.
  • This issue started occurring only after updating to v8.1.0.
  • There are no explicit calls to Rollbar\RollbarLogger in our code.

Steps to Reproduce

  1. Upgrade to Rollbar v8.1.0.
  2. Ensure that Rollbar is not enabled in the configuration.
  3. Run the application.
  4. Observe the error in the logs.

Additional Context

  • This issue did not occur in previous versions.
  • It seems like Rollbar is being instantiated even when not configured.
  • The application was functioning as expected before the upgrade.

Would appreciate any guidance on resolving this issue! 🚀

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions