Skip to content

Last commit made in src/MonologHandler.php break old versions of PHP #102

@corozco4

Description

@corozco4

Good Afternoon,

You did a change 22 days ago to support monolog 2.0 that included the following change in the file "src/MonologHandler.php":

protected function write(array $record): void

This syntax is only supported by PHP 7.0 or greater, but you didn't change the version of you required php in composer.json:

"require": { "php": ">=5.4",

So when we did a "composer update" in our project, we downloaded the last version of your library being v0.7.3 breaking our project because we have PHP version 5.6.40

The following is the error we got:

syntax error, unexpected ':', expecting ';' or '{' in /vendor/airbrake/phpbrake/src/MonologHandler.php:31

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