Skip to content

Conversation

@bensinclair
Copy link
Member

@bensinclair bensinclair commented Jul 15, 2025

This PR adds support for PHP 8.3 and 8.4 whilst maintaining backwards compatibility.

It also upgrades actions/cache in the GitHub Actions file to v4.

@bensinclair bensinclair marked this pull request as ready for review July 15, 2025 01:15
@bensinclair bensinclair requested review from Copilot and joshmcrae July 15, 2025 01:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for PHP 8.3 and 8.4 in the CI pipeline while preserving backward compatibility, updates method signatures in LitEmoji to use nullable types, and bumps the GitHub Actions cache action to v4.

  • Updated encoding methods to accept ?string $encoding instead of string $encoding = null
  • Expanded the GitHub Actions PHP matrix to include versions 8.3 and 8.4
  • Upgraded actions/cache from v2 to v4 in tests.yml

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/LitEmoji.php Changed four methods to use nullable ?string $encoding type hints
.github/workflows/tests.yml Added PHP 8.3 & 8.4 to matrix; bumped actions/cache to v4
Comments suppressed due to low confidence (1)

.github/workflows/tests.yml:33

  • Consider adding a restore-keys setting (e.g., restore-keys: ${{ runner.os }}-composer-) to the cache step to improve cache hit rates when the lockfile changes.
        uses: actions/cache@v4

Copy link
Member

@joshmcrae joshmcrae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bensinclair!

@joshmcrae joshmcrae merged commit 57e9403 into master Jul 15, 2025
6 checks passed
@joshmcrae joshmcrae deleted the support-php-8-3-and-8-4 branch July 15, 2025 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants