Repository navigation
Conversation
vimeo/psalm ^7.0 (7.5.0), with php-cs-fixer, PHPStan, Rector, and sebastian/version updated alongside (Dependabot's group). Six (string) casts of request values already checked with is_string() are removed. The included files' ABSPATH guards carry a Psalm note: Psalm 7.5 reads them as decided by the main file's check. InvalidDocblock is not reported for the WordPress stubs file, which Psalm 7 rejects in places. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Thanks for contributing to EngineScript Site Exporter! Before we review:
Security Reminder
We'll review your PR soon. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
The WordPress test job pins PHPUnit 9.6, and Psalm 7.4 and later require psalm/plugin-phpunit, whose 1.x releases conflict with PHPUnit below 11, so Composer could not resolve. The job does not run Psalm, so it removes Psalm before pinning PHPUnit. Psalm on GitHub (PHP 8.3) reported MixedAssignment for the network cleanup loop's site IDs; the loop now takes the numeric IDs as integers (array_filter, then array_map with intval), as the is_numeric() check and (int) cast did before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
Moves static analysis to Psalm 7 (
vimeo/psalm^7.0, locked at 7.5.0). Replaces Dependabot's #153, which failed Psalm; php-cs-fixer, PHPStan, Rector, andsebastian/versionfrom that group are updated here too.(string)casts of request values thatis_string()had already checked are removed (includes/download.php,includes/export.php).wp_unslash()keeps the type it is given.if ( ! defined( 'ABSPATH' ) )guard as redundant and paradoxical, because the main plugin file checks the same constant first and the Psalm stub defines it. The guards still matter for a direct request, so each carries a@psalm-suppressnote instead of being removed.php-stubs/wordpress-stubs.psalm.xmlsuppressesInvalidDocblockfor that file only; the plugin's own docblocks are still checked.CHANGELOG.mdandreadme.txt; the POT file's line references moved.Testing
composer psalm,composer psalm:taint: no errors with Psalm 7.5.0.composer phpstan,composer phpcs,composer phpmd,composer rector: clean.composer test: 230 tests pass.phpcs-plugin-checkon the changed files: clean.npm run lint:md: clean.🤖 Generated with Claude Code