Home > Enterprise >  PHP monolog error while signin with google
PHP monolog error while signin with google

Time:12-21

I updated api client with composer and now i get this error while logging in with google

Parse error: syntax error, unexpected identifier "Level" in /***/***/***/***/vendor/monolog/monolog/src/Monolog/Level.php on line 32

This is line 32:

enum Level: int

What caused this error?

You can see the file here

CodePudding user response:

As @stefket suggested, Enums are introducted with php 8.1

The minimum supported PHP version of the latest release of Monolog is also 8.1.0

You can either upgrade your php version or use the 2.5.0 release compatible with PHP 7.2

composer require monolog/monolog:2.5.0

  • Related