Skip to content

Modernize PHP/PHPUnit support and fix PHP 8 compatibility issues - #30

Merged
antonfin merged 2 commits into
masterfrom
chore/upgrade-php-support
Jul 20, 2026
Merged

Modernize PHP/PHPUnit support and fix PHP 8 compatibility issues#30
antonfin merged 2 commits into
masterfrom
chore/upgrade-php-support

Conversation

@antonfin

Copy link
Copy Markdown
Member

Bump minimum PHP to 7.2 and PHPUnit to 8.5/9.6 so the library and its test suite actually install and run on current PHP (the old "*" phpunit constraint was resolving to PHPUnit 13, which no longer has PHPUnit_Framework_TestCase). Replace the defunct Travis CI config with a GitHub Actions matrix covering PHP 7.2-8.4. Also fix a dead-variable warning in LIVR::validate() and an unqualified throw new Exception in Text::like() that referenced a non-existent class under PHP 8.

antonfin and others added 2 commits July 20, 2026 19:36
Bump minimum PHP to 7.2 and PHPUnit to 8.5/9.6 so the library and its
test suite actually install and run on current PHP (the old "*"
phpunit constraint was resolving to PHPUnit 13, which no longer has
PHPUnit_Framework_TestCase). Replace the defunct Travis CI config with
a GitHub Actions matrix covering PHP 7.2-8.4. Also fix a dead-variable
warning in LIVR::validate() and an unqualified `throw new Exception`
in Text::like() that referenced a non-existent class under PHP 8.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
composer.lock is generated on a single PHP version and pins dependency
versions (e.g. nikic/php-parser v5) that require newer PHP than some
matrix jobs target, causing "lock file does not contain a compatible
set of packages" on PHP 7.2/7.3. Resolving fresh per job avoids this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@antonfin
antonfin merged commit abbe57e into master Jul 20, 2026
8 checks passed
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