Closed agustingomes closed 3 years ago
@rdohms indeed. I'm not sure if we have any policies around this. we can discuss it internally to see if we want any policies around it or in general, to understand how to move forward.
Currently, the biggest impact I've seen is that for some tests like mutation (with infection/infection
library) and PHPUnit analysis coverage report generation, they will need to have the new Xdebug mode set prior to their execution, either via xdebug.mode
in the .ini
config files, or via the environment variable XDEBUG_MODE
Marking as BC-Change, due to the possibility users of the images needing to adjust their configurations to continue using the Xdebug's code coverage features.
Usabilla PHP Docker Template
Reviewers: @usabilla/oss-docker
Type
Please specify the type of changes being proposed:
Changelog
Notable changes from Xdebug 2
With the introduction of the Xdebug mode in the v3 release, it is now mandatory to specify either
xdebug.mode=coverage
setting in .ini file, orXDEBUG_MODE=coverage
as environment variable, to use the code coverage analysis features. This impacts tools like mutation tests.We recommend setting the XDEBUG_MODE when booting up a new container. Here's an example on how it could look like:
Another notable change, is the Xdebug port change. The default port is now
9003
instead of9000
. Check your IDE settings to confirm the correct port is specified.For the full upgrade guide, please refer to the official upgrade guide.