[Bug]: Declaration of Pimcore\Bundle\ApplicationLoggerBundle\ApplicationLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = []) #16254
Replies: 7 comments
-
This is strange, because it should only happen if you have Which version of |
Beta Was this translation helpful? Give feedback.
-
its very strange indeed
i have no idea to be honest. it happens locally on my dev machine and also while deploying to prod... |
Beta Was this translation helpful? Give feedback.
-
Hi @bitbirddev psr/log v3 should have the type hints defined. Please check your vendor files and try clearing cache if the type hints are there. |
Beta Was this translation helpful? Give feedback.
-
FYI @dvesh3 @bitbirddev it not a pimcore problem. In my case it's caused a composer plugin "phpro/grumphp" try to disable/remove all "allow-plugins" from compsoer.json and just run |
Beta Was this translation helpful? Give feedback.
-
@Fahl-Design composer runs without any problems, its just the "composer dump-env prod" command that gives me this error. this happens on my local machine, on github actions with shivammathur/setup-php and also on my ubuntu production server. |
Beta Was this translation helpful? Give feedback.
-
@bitbirddev in this case try to add |
Beta Was this translation helpful? Give feedback.
-
I got the same problem and could solve it with calling bin/console dotenv:dump without the error coming up. |
Beta Was this translation helpful? Give feedback.
-
Pimcore version
v11.1.0
Steps to reproduce
run
composer dump-env
since v11.1.0 the error
Fatal error: Declaration of Pimcore\Bundle\ApplicationLoggerBundle\ApplicationLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = []) in ./vendor/pimcore/pimcore/bundles/ApplicationLoggerBundle/src/ApplicationLogger.php on line 224
gets thrown. its still working with Pimcore Version v11.0.12Actual Behavior
Error gets thrown
Fatal error: Declaration of Pimcore\Bundle\ApplicationLoggerBundle\ApplicationLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::emergency($message, array $context = []) in ./vendor/pimcore/pimcore/bundles/ApplicationLoggerBundle/src/ApplicationLogger.php on line 224
Expected Behavior
.env gets compiled to .env.local.php
Beta Was this translation helpful? Give feedback.
All reactions