Skip to content

Commit 10767f5

Browse files
committed
ci: downgrade the test harness for the 8.1 leg
The test stubs use 8.2 standalone types (e.g. `: false`), so the suite cannot load on 8.1 as written. Downgrade tests and the testo config via install-php's paths, but leave src alone so the shipped library is still exercised on 8.1 as-is. Assisted-By: Claude Opus 4.8 (1M context)
1 parent 72ea9a4 commit 10767f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/testing.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ jobs:
7272
with:
7373
php-version: '8.1'
7474
dependency-versions: ${{ matrix.dependencies }}
75+
# Downgrade the test harness (which uses 8.2+ syntax) and the testo config, but not src:
76+
# the shipped library must be exercised on 8.1 as written.
77+
paths: tests testo.php
7578
# testo ships intentionally unparseable IDE stubs; they are not real code to downgrade.
7679
skip: '*/resources/stubs/*'
7780

0 commit comments

Comments
 (0)