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

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

Open
corozco4 opened this issue Apr 8, 2020 · 0 comments
Open

Comments

@corozco4
Copy link

corozco4 commented Apr 8, 2020

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

@corozco4 corozco4 changed the title Last commit made in src/MonologHandler.php break old versions Last commit made in src/MonologHandler.php break old versions of PHP Apr 8, 2020
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