Skip to content

Support Psalm 7 and psalm/psalm-plugin-api 0.4 - #65

Merged
danog merged 2 commits into
masterfrom
psalm-7
Oct 20, 2026
Merged

danog merged 2 commits into
masterfrom
psalm-7

Conversation

@danog

@danog danog commented Oct 20, 2026

Copy link
Copy Markdown
Member

The plugin cannot be installed with Psalm master, which requires psalm/psalm-plugin-api 0.4.0.

Before:

"vimeo/psalm": "^5 || ^6"

After:

"psalm/psalm-plugin-api": "^0.4",
"vimeo/psalm": "^7|dev-master"

https://claude.ai/code/session_01WNSb29tptiTQoc44Tk7XZW

danog added 2 commits October 20, 2026 10:01
TCallable no longer takes a value, and PHP-Parser 5 only attaches the
phpdoc of "$var = apply_filters(...)" to the expression statement, so
documented hooks got mixed types.

Psalm 7 reports the docblock issues of the stubs plugins add: the
wp_parse_url stub no longer uses a PHP_URL_* wildcard, which Psalm
doesn't support for global constants, and the tests suppress those of
the third-party stubs.

The tests use Psalm's test case, which now needs PHPUnit 10+, static
data providers and dg/bypass-finals.

Claude-Session: https://claude.ai/code/session_01WNSb29tptiTQoc44Tk7XZW
Composer refuses to install wp-coding-standards/wpcs 2.3.0, which
humanmade/coding-standards requires, because of a security advisory.

Claude-Session: https://claude.ai/code/session_01WNSb29tptiTQoc44Tk7XZW
@danog
danog merged commit ac072f0 into master Oct 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant