[GH-ISSUE #143] Can't inherit abstract function error #46

Closed
opened 2026-03-04 02:11:39 +03:00 by kerem · 2 comments
Owner

Originally created by @pimpreneil on GitHub (Jan 7, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/143

Hi,

On one of my servers that is running PHP 5.3.3-7, since the commit d345993ecb, I get the following error :

Fatal error:  Can't inherit abstract function Symfony\Component\HttpKernel\Log\LoggerInterface::alert() (previously declared abstract in Psr\Log\LoggerInterface) in /var/www/tracker.primoapp.fr/releases/20130107094001/vendor/symfony/symfony/src/Symfony/Bridge/Monolog/Logger.php on line 23

I don't get the error on my local server (running PHP 5.3.10-1) so I guess that it is linked to a PHP issue. Could you tell me if there is any workaround or if I really have to upgrade my PHP version.

Thanks for your help,
Arnaud

Originally created by @pimpreneil on GitHub (Jan 7, 2013). Original GitHub issue: https://github.com/Seldaek/monolog/issues/143 Hi, On one of my servers that is running PHP 5.3.3-7, since the commit d345993ecb82cf17ef5c099255c86a768ea5617f, I get the following error : ``` Fatal error: Can't inherit abstract function Symfony\Component\HttpKernel\Log\LoggerInterface::alert() (previously declared abstract in Psr\Log\LoggerInterface) in /var/www/tracker.primoapp.fr/releases/20130107094001/vendor/symfony/symfony/src/Symfony/Bridge/Monolog/Logger.php on line 23 ``` I don't get the error on my local server (running PHP 5.3.10-1) so I guess that it is linked to a PHP issue. Could you tell me if there is any workaround or if I really have to upgrade my PHP version. Thanks for your help, Arnaud
kerem closed this issue 2026-03-04 02:11:39 +03:00
Author
Owner

@stof commented on GitHub (Jan 7, 2013):

use the released version of Monolog with Symfony currently (all symfony branches have updated the composer constraints already). Monolog master now implements PSR-3, which requires an update of the Symfony interface to avoid conflicts

<!-- gh-comment-id:11947661 --> @stof commented on GitHub (Jan 7, 2013): use the released version of Monolog with Symfony currently (all symfony branches have updated the composer constraints already). Monolog master now implements PSR-3, which requires an update of the Symfony interface to avoid conflicts
Author
Owner

@pimpreneil commented on GitHub (Jan 7, 2013):

Thank you stof for your quick answer, very helpful 👍

<!-- gh-comment-id:11947935 --> @pimpreneil commented on GitHub (Jan 7, 2013): Thank you stof for your quick answer, very helpful :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#46
No description provided.