Commit 8bcff6b
committed
GH Actions: fix build with special set of extensions
There was a special build included which is supposed disable Mbstring and record code coverage, but the `extensions` key was missing from the `setup-php` action runner, so Mbstring was never disabled....
Mind: the original intention was for this build to use a PHP version "in the middle" between the low and high supported PHP versions, hence PHP 7.2.
However, updating this now to PHP 8.1 would fail the build as PHP 8.1 would use PHPUnit 9.x, which since PHPUnit 9.3 uses PHP Parser for code coverage, which will break on the tokens polyfilled by PHP_CodeSniffer.
So, this MUST be run either on a PHP version still using PHPUnit 8 (= PHP 7.2) or on a PHP version which doesn't polyfill any PHP native tokens (= PHP 8.4). With that in mind, I've left it at PHP 7.2 for now.
Another thing to know about this build is that Mbstring is a required extension for PHPUnit, but it is only really needed when PHPUnit is run with the `--testdox` CLI flag.
In later PHPUnit versions, this requirement is enforced across the board though, but IIRC we should still be able to run without Mbstring on PHPUnit 8.1 parent e43f301 commit 8bcff6b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
0 commit comments