Skip to content

Gantry 5 - Compile Error: Declaration of Psr\Log\NullLogger #3264

@trevorsm

Description

@trevorsm

Gantry5 v5.5.19

I have been trying to set up login using PassKey but after signing in the following error is thrown:

Compile Error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void

After a bit of Googling I was able to fix the error by editing /libraries/gantry5/vendor/psr/log/Psr/Log/NullLogger.php

Replacing line 26:
public function log($level, $message, array $context = array())

With:
public function log($level, $message, array $context = []): void

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