Skip to content

Analyse the SDK library with PHPStan level 5 - #19

Draft
eunomie wants to merge 1 commit into
phpcs-psr12from
phpstan-level5
Draft

eunomie wants to merge 1 commit into
phpcs-psr12from
phpstan-level5

Conversation

@eunomie

@eunomie eunomie commented Nov 11, 2026

Copy link
Copy Markdown
Member

Stacked on #17. Adds sdk/phpstan.dist.neon (level 5 over sdk/src and sdk/tests/Unit/Module) and an e2e sdk-analysis-check. The two errors PHPStan finds, both in vendored src/Client/ files, are recorded in a baseline copied verbatim from dagger/dagger sdk/php (identical at beta.25 and beta.27); no source changed.

Check, on the beta.27 engine and CLI: sdk-analysis-check fails on a deliberate type error and passes on the final tree ([OK] No errors).

src references the generated client, so codegen runs before analysis.
PHP's default 128M memory limit crashes PHPStan; the peak is 389 MB.

Signed-off-by: Yves Brissaud <yves@dagger.io>
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