Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AssertClosedResource: fix compatibility with PHPUnit 8/9 PHAR files
PHPUnit 8.5..38 and 9.6.19 contain a change in the PHAR files. In particular, a change in how external dependencies included in the packaged PHAR files are prefixed to prevent conflicts with potentially Composer installed dependencies on the same packages. In practice, the prefix for these external dependencies which is being added when the PHAR is being build has changed from `PHPUnit\\` to `PHPUnitPHAR\\`. This impacts the `AssertClosedResource` polyfill which uses the `SebastianBergmann\Exporter\Exporter` class from the external `Exporter` dependency. This commit fixes the issue. Refs: * https://github.com/sebastianbergmann/phpunit/releases/tag/8.5.38 * https://github.com/sebastianbergmann/phpunit/releases/tag/9.6.19
- Loading branch information