psalm: Crash when running docker image on php 8.3 codebase

When running the official docker image on a php 8.3 codebase the process crashes due to deprecation warnings:

Uncaught Amp\Parallel\Worker\TaskFailureException: RuntimeException thrown in context with message "PHP Error: Constant Rentman\Core\Log\E_STRICT is deprecated in /project/app/include/vendor/rentman/core/src/Log/AbstractErrorHandler.php:40 for command with CLI args "/composer/vendor/bin/psalm --config=psalm.xml"" and code "8192" in /project/app/include/vendor/rentman/core/src/Log/AbstractErrorHandler.php:40
Stack trace in context:
#0 /composer/vendor/vimeo/psalm/src/Psalm/Internal/ErrorHandler.php(76): [constant expression]()
#1 /project/app/tools/FactoryContainerPsalmPlugin.php(440): Psalm\Internal\ErrorHandler::{closure:Psalm\Internal\ErrorHandler::installErrorHandler():69}(8192, "Constant Rentman\Core\Log\E...", "/project/app/include/vendor...", 40)

Seems to me that the error handler installed by psalm is a bit too strict

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20

Most upvoted comments

In any case, 6.9.5 should fix the segfault issue too.