Skip to content

Monolog 3 support #117

@gbirke

Description

@gbirke

Monolog 3 has changed the signature of the AbstractProcessingHandler::write method from an array to a record object, leading to type errors and static analysis errors.

If you want to stay backwards-compatible, you could avoid typing write method and accept both arrays or records. Monolog\LogRecord implements the ArrayAccess interface, so the method body can stay the same

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions