Skip to content

[Monolog Bridge] ErrorException: Accessing static property $sendHeaders as non static #34505

@Sander-Toonen

Description

@Sander-Toonen

Symfony version(s) affected: 4.4
The problem started after updating SF4.3 to 4.4 but I'm not really sure why earlier versions would not be affected. I am running php 7.3.11.

Description
When using the ChromePHPHandler the following error may occur:

Notice: Accessing static property Symfony\Bridge\Monolog\Handler\ChromePhpHandler::$sendHeaders as non static in ChromePhpHandler.php line 62

To replicate add the following to the monolog configuration:

monolog:
    handlers:
        chromephp:
            type: chromephp
            level: debug

I think we can replace the $this->sendHeaders on lines 44 and 62 with self::$sendHeaders without any problem since the sendHeaders property is static in both version 1.25.1 and 2.x of monolog.

PR is on its way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy