Repository navigation
Drop PHP 5.x/7.x support, require PHP >=8.0 - #8
Open
mazfreelance wants to merge 1 commit into
Open
mazfreelance wants to merge 1 commit into
mazfreelance wants to merge 1 commit into
Conversation
composer.json pinned spomky-labs/base64url ^1.0 (caps at PHP 7) and spomky-labs/php-aes-gcm ^1.2 (PHP 5.6 fallback), both of which turned out to be dead weight: Base64Url was imported in RFC8188.php but never called, and AESGCM only ran inside a `version_compare(phpversion(), '7.0.0', '>')` branch unreachable on any PHP version in real use. - Remove spomky-labs/php-aes-gcm entirely; always use the native openssl_encrypt/openssl_decrypt AEAD GCM path (stable since PHP 7.1) - Move spomky-labs/base64url to require-dev (only the test suite uses it); bump 1.0 -> 2.0, same encode()/decode() API - Fix a real PHP 8.1 deprecation this exposed: $keyid defaulted to null and flowed into strlen()/bin2hex(), both deprecated for null input as of 8.1 - normalize with $keyid = $keyid ?? '' - Remove the two tests whose sole purpose was proving PHP 5.6/7.1 cross-compatibility between the two now-merged code paths - Bump phpunit/phpunit ^5 -> ^9.6; drop the random_compat polyfill note from the README; update Dockerfile base image and .travis.yml PHP matrix (5.6/7.1/7.2 -> 8.0-8.5 + nightly) Verified with the real test suite (6 tests, 6 assertions, zero warnings) on PHP 8.0, 8.1, 8.4, and 8.5.12. BREAKING CHANGE: drops PHP <8.0 support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
composer.json pinned spomky-labs/base64url ^1.0 (caps at PHP 7) and spomky-labs/php-aes-gcm ^1.2 (PHP 5.6 fallback), both of which turned out to be dead weight: Base64Url was imported in RFC8188.php but never called, and AESGCM only ran inside a
version_compare(phpversion(), '7.0.0', '>')branch unreachable on any PHP version in real use.Verified with the real test suite (6 tests, 6 assertions, zero warnings) on PHP 8.0, 8.1, 8.4, and 8.5.12.
BREAKING CHANGE: drops PHP <8.0 support.