chore: update dev deps to phpstan 2.x, PHP 8.0+, WP 6.6-6.9 (v1.2.0)#13
Merged
Conversation
- composer.json: require PHP 8.0+, phpstan 2.x, phpstan-wordpress 2.x, phpunit 8|9, WP 6.9 test deps. Drop phpcompatibility, roave/security-advisories and the explicit squizlabs pin (installed transitively via the phpcs installer).
- Retire WP_6_2 / WP_6_3 / WP_6_4 / WP_6_5 workflows. Refresh WP_6_6 / WP_6_7 and add WP_6_8 / WP_6_9. All run PHP 8.0-8.4 against mysql:8.4. WP_6_9 uploads coverage via codecov/codecov-action@v4 under ${{ secrets.HTTP_CODCOV }}.
- Add standard .scrutinizer.yml block.
- phpcs.xml: add the curl-alternative excludes and PSR12.Files.FileHeader.IncorrectOrder exclude; keep the short-ternary excludes.
- tests/wp-config.php: suppress WP 6.8 wp_is_block_theme early-call E_USER_NOTICE under PHPUnit's notice-to-exception conversion; switch the CI DB name from the stale 'bp_events' over to 'pc_core_tests'.
- tests/.env (gitignored, already in .gitignore) added for local dev.
- Docblocks: fill in descriptions on every bare @param / @return / @throws across src/ (HTTP.php + HTTP_Helper.php).
- README: prune stale WP 6.2-6.5 badges, add WP 6.6-6.9, add 'Tested Against' block, 1.2.0 changelog entry.
20 tests, 68 assertions green. phpstan level 8 clean. phpcs clean.
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.
20 tests, 68 assertions green. phpstan level 8 clean. phpcs clean.