Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
branches-ignore:
- next/**
schedule:
- cron: '42 2 * * *'
- cron: '42 2 * * 4'

jobs:
# Check that this runs on PHP on all versions we claim to support, on both
Expand All @@ -36,14 +36,14 @@ jobs:
matrix:
# All the versions, OS, and dependency levels we want to support
os: [ubuntu] # TODO: windows, macos
php: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
php: [ '8.2', '8.3', '8.4', '8.5' ]
dependency: [ stable ]
# Our code has paths for with- and without- XDebug, and we want to test
# both of them.
# @see https://xdebug.org/docs/all_settings#mode
xdebug3-mode: ['develop,coverage', 'coverage']
include:
- php: '8.1'
- php: '8.2'
os: 'ubuntu'
dependency: 'lowest'
xdebug3-mode: 'develop,coverage'
Expand Down Expand Up @@ -73,21 +73,13 @@ jobs:
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.dependency }}-
restore-keys: ${{ matrix.os }}-composer-${{ matrix.dependency }}-

- name: Install dependencies PHP < 8.5
if: matrix.php != '8.5'
- name: Install dependencies PHP
run: composer update --prefer-${{ matrix.dependency }} --prefer-dist --no-interaction

- name: Execute tests PHP < 8.5
if: matrix.php != '8.5'
run: composer test

# This is a temporary workaround until vimeo/psalm is updated to support PHP 8.5.
- name: Install dependencies PHP 8.5
if: matrix.php == '8.5'
run: composer update --prefer-${{ matrix.dependency }} --prefer-dist --no-interaction --ignore-platform-reqs
# Temporary workaround to fix nikic/php-parser incompatibility with Psalm until
# https://github.com/vimeo/psalm/pull/11927 is released.
- name: Fix nikic/php-parser incompatibility with Psalm
run: composer update nikic/php-parser --prefer-dist --no-interaction

- name: Execute tests PHP 8.5
if: matrix.php == '8.5'
run: |
./vendor/bin/phpcs --standard=PSR2 ./src ./tests
./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- name: Execute tests PHP
run: composer test
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Removed
* Removed support for PHP 8.1. @danielmorell #673.

## [4.2.1] - 2026-03-27
### Changed
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},

"require": {
"php": ">=8.1.0 <9.0",
"php": ">=8.2.0 <9.0",
"ext-curl": "*",
"psr/log": "^1 || ^2 || ^3",
"monolog/monolog": "^2 || ^3"
Expand All @@ -42,7 +42,7 @@
"mockery/mockery": "^1.5.1",
"squizlabs/php_codesniffer": "^3.7",
"phpmd/phpmd" : "^2.13",
"vimeo/psalm": "^6.13"
"vimeo/psalm": "^6.16"
},

"suggest": {
Expand Down
Loading