Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummylogger #93

Open
mark-cca opened this issue Feb 27, 2024 · 0 comments
Open

Dummylogger #93

mark-cca opened this issue Feb 27, 2024 · 0 comments

Comments

@mark-cca
Copy link

mark-cca commented Feb 27, 2024

Your DummyLogger class seems to be implementing the LoggerInterface correctly, but the error you're encountering indicates a compatibility issue.

In PHP, when implementing an interface method, the parameter types and their order must match exactly. The error suggests that the emergency method in DummyLogger is not compatible with the one defined in LoggerInterface.

To resolve this, make sure the emergency method in your DummyLogger class exactly matches the method signature in LoggerInterface. The LoggerInterface method signature for emergency is:

public function emergency($message, array $context = []);

So, update your DummyLogger class accordingly:

public function emergency($message, array $context = []): void
{
// Your implementation here
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant