Skip to content

chore: raise minimum PHP version to 7.4 - #22

Merged
csemazharul merged 1 commit into
mainfrom
chore/php-7.4-floor
Nov 2, 2026
Merged

csemazharul merged 1 commit into
mainfrom
chore/php-7.4-floor

Conversation

@csemazharul

Copy link
Copy Markdown
Collaborator

Raises the minimum PHP version from 7.2 to 7.4.

Changes

  • composer.json: php requirement is now >=7.4.
  • rector.php: PhpVersion::PHP_74 and SetList::PHP_74. The typed-property skips stay.
  • CLAUDE.md: updated the stated minimum version and syntax rules.

composer compat already targets 7.4-, so it needs no change. No src/ code changes.

Release

Release this as a minor version (1.3.0), not a patch. Sites on PHP 7.2 or 7.3 will stop receiving updates of this library.

Testing

Check Result
PHP 8.4 tests 36 pass
PHP 7.4 syntax check on src/ Clean
composer compat No errors or warnings
composer rector dry-run Flags the same 5 files as before the bump

The Pest suite was not run on PHP 7.4 because Pest 2 needs PHP 8.1+, and the CI matrix starts at 8.1.

Do not apply Rector's suggestion for src/Helpers.php: it removes $current = $value from setNestedElement(), and that line is what writes the value through the reference.

🤖 Generated with Claude Code

Update composer.json, the Rector PHP version and set, and CLAUDE.md.
The composer compat script already targets 7.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@csemazharul
csemazharul merged commit 27f6841 into main Nov 2, 2026
3 of 5 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