From 0b88096d582d291ccd3414b41e93437a88ce6c2f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 31 Aug 2026 18:18:38 +0000 Subject: [PATCH 1/2] Fix php:7.2 CI build by using archive.debian.org for buster Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> --- ci/Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ci/Dockerfile b/ci/Dockerfile index 2949d56e..4a30963a 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -2,7 +2,16 @@ ARG PHP_VERSION FROM php:$PHP_VERSION RUN curl https://getcomposer.org/download/latest-2.x/composer.phar -o /usr/bin/composer.phar && chmod a+x /usr/bin/composer.phar WORKDIR /tolerant-php-parser -RUN apt-get update && apt-get install -y unzip && apt-get clean +# Debian buster (used by the php:7.2 image) has reached end-of-life and was +# removed from the regular Debian mirrors, so point apt at the archive mirror +# for that release before updating. +RUN if grep -q buster /etc/os-release 2>/dev/null; then \ + sed -i \ + -e 's|deb.debian.org/debian|archive.debian.org/debian|g' \ + -e 's|security.debian.org/debian-security|archive.debian.org/debian-security|g' \ + /etc/apt/sources.list; \ + fi \ + && apt-get update && apt-get install -y unzip && apt-get clean ARG COMPOSER_OPTIONS ENV COMPOSER_OPTIONS=$COMPOSER_OPTIONS From 71fadeadbc08e7159f7092ce86196dd4fec962eb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 31 Aug 2026 18:22:15 +0000 Subject: [PATCH 2/2] Remove EOL PHP 7.2 from CI matrix instead of patching apt sources Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> --- .github/workflows/main.yml | 1 - ci/Dockerfile | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index faffa69b..36ba20d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,6 @@ jobs: include: # NOTE: If this is not quoted, the yaml parser will convert numbers such as 8.0 to the number 8, # and the docker image `php:8` is the latest minor version of php 8.x (8.1). - - PHP_VERSION: '7.2' - PHP_VERSION: '7.3' - PHP_VERSION: '7.4' - PHP_VERSION: '8.0' diff --git a/ci/Dockerfile b/ci/Dockerfile index 4a30963a..2949d56e 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -2,16 +2,7 @@ ARG PHP_VERSION FROM php:$PHP_VERSION RUN curl https://getcomposer.org/download/latest-2.x/composer.phar -o /usr/bin/composer.phar && chmod a+x /usr/bin/composer.phar WORKDIR /tolerant-php-parser -# Debian buster (used by the php:7.2 image) has reached end-of-life and was -# removed from the regular Debian mirrors, so point apt at the archive mirror -# for that release before updating. -RUN if grep -q buster /etc/os-release 2>/dev/null; then \ - sed -i \ - -e 's|deb.debian.org/debian|archive.debian.org/debian|g' \ - -e 's|security.debian.org/debian-security|archive.debian.org/debian-security|g' \ - /etc/apt/sources.list; \ - fi \ - && apt-get update && apt-get install -y unzip && apt-get clean +RUN apt-get update && apt-get install -y unzip && apt-get clean ARG COMPOSER_OPTIONS ENV COMPOSER_OPTIONS=$COMPOSER_OPTIONS