Skip to content

feat: support PHP 8.3 and 8.4, PHPUnit 12 and Pest 4 - #1

Merged
sorge-it merged 1 commit into
mainfrom
feat/phpunit-12-pest-4
Oct 5, 2026
Merged

sorge-it merged 1 commit into
mainfrom
feat/phpunit-12-pest-4

Conversation

@sorge-it

@sorge-it sorge-it commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Why

Projects on Laravel 12 cannot install the package. Version 1.0.0 needs PHP 8.5 and PHPUnit 13, and Laravel 12 has neither PHPUnit 13 nor Pest 5.

What changes

  • php is ^8.3, phpunit/phpunit is ^12.5|^13.2.
  • symfony/polyfill-php84 and symfony/polyfill-php85 supply array_find, array_any, mb_trim, array_first and array_last below PHP 8.5.
  • Html::text() uses mb_trim() in place of the pipe operator.
  • AppearsBefore puts new DOMXPath(...) in parentheses again.
  • The dev requirements allow Pest 4, Laravel 12 and Symfony 7.4.
  • The README names the supported versions.

CI

The CI tests three stacks:

PHP Stack
8.3 PHPUnit 12, Pest 4, Laravel 12, Symfony 7.4
8.4 the newest versions
8.5 the versions of composer.lock

--prefer-lowest is not used. The lowest patch releases of Pest 4.7 and masterminds/html5 give PHPStan errors and PHP deprecations that do not come from this package.

Release

After the merge: tag v1.1.0.

The package now installs next to PHPUnit 12.5, Pest 4, Laravel 12 and
Symfony 7.4. Two lines use syntax of PHP 8.4 and 8.5 no more. The Symfony
polyfills supply the newer array and mb functions. The CI tests PHP 8.3,
8.4 and 8.5.
@sorge-it
sorge-it merged commit f53f915 into main Oct 5, 2026
3 checks passed
@sorge-it
sorge-it deleted the feat/phpunit-12-pest-4 branch October 5, 2026 13:36
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