Repository navigation
Support PHP 8.6 - #14
Merged
Merged
Conversation
Several locked dev packages (ergebnis/*, nette/utils, symplify/coding-standard) capped their PHP constraint at 8.5, so composer install failed on PHP 8.6. The PHPStan bump to 2.3 detects that $first in joinFirstPair() can no longer be null once the first line was consumed, so the redundant null checks are removed.
The ensure-sync and twig-cs-fixer hooks were copied from another project. bin/graphql-client-code-generator and twig-cs-fixer do not exist here, so ensure-sync failed every commit that touched a PHP file.
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.
Makes the library installable and tested on PHP 8.6.
Changes
ergebnis/*,nette/utils,symplify/coding-standard) capped their PHP constraint at 8.5, socomposer installfailed on PHP 8.6.composer.jsonalready allows 8.6 through^8.5, so only the lock file changes.joinFirstPair(). PHPStan was bumped from 2.1 to 2.3, and the new version reports that$firstcan no longer benullonce the first line has been consumed. The checks and the deadelsebranch are removed. Behaviour does not change.ensure-syncandtwig-cs-fixerwere copied from another project.bin/graphql-client-code-generatorandtwig-cs-fixerdo not exist here, soensure-syncfailed every commit that touched a PHP file.Verification
Tests, PHPStan, PHP CS Fixer, composer-dependency-analyser and the README sync all pass locally on both PHP 8.5.13 and 8.6.0, using the new lock file.
PHP CS Fixer 3.95 warns that it officially supports syntax only up to PHP 8.5. That is harmless here, because CI also runs on 8.5.