Skip to content

Fix tests in Docker for 3.x#827

Open
denis-trofimov wants to merge 3 commits into
moneyphp:3.xfrom
denis-trofimov:fix/docker-buster-archive
Open

Fix tests in Docker for 3.x#827
denis-trofimov wants to merge 3 commits into
moneyphp:3.xfrom
denis-trofimov:fix/docker-buster-archive

Conversation

@denis-trofimov

@denis-trofimov denis-trofimov commented May 18, 2026

Copy link
Copy Markdown
  • fixes Fix tests in Docker for 3.x #828

  • The php:7.2-cli image is based on EOL Debian Buster; apt-get update fails against the default mirrors. Point apt at archive.debian.org and document the requirement in the README.

  • if Docker runs an older PHP (for example 7.2 while dependencies were resolved on 7.4), PHPUnit can fail with hundreds of ParseErrors in vendor/ (often in packages used by Prophecy, such as phpdocumentor/reflection-docblock).

The php:7.2-cli image is based on EOL Debian Buster; apt-get update fails
against the default mirrors. Point apt at archive.debian.org and document
the requirement in the README.
php:7.2-cli cannot parse dev packages installed on PHP 7.4 (e.g.
phpdocumentor/reflection-docblock), which caused 200+ PHPUnit errors.
Use php:7.4-cli-buster and document the version mismatch in the README.
@denis-trofimov denis-trofimov changed the title Fix Docker build by using Debian Buster archive mirrors. Fix tests in Docker for 3.x May 18, 2026
Add README instructions for installing dependencies in the container
when vendor/ is missing and Composer is not baked into the image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant