Skip to content

Check the SDK library's Composer setup - #20

Draft
eunomie wants to merge 1 commit into
phpstan-level5from
composer-check
Draft

eunomie wants to merge 1 commit into
phpstan-level5from
composer-check

Conversation

@eunomie

@eunomie eunomie commented Nov 11, 2026

Copy link
Copy Markdown
Member

Stacked on #19. Adds an e2e sdk-composer-check: composer validate --strict, composer install (which enforces the lock's platform requirements), then codegen and composer dump-autoload --classmap-authoritative --strict-psr --strict-ambiguous over src/, generated/, tests/ and the unit fixture. --strict-ambiguous is there because Dagger\\ maps to both src/ and generated/. No existing violation, so no source changed.

Check, on the beta.27 engine and CLI: sdk-composer-check fails on a class in the wrong namespace (psr-4 error) and passes on the final tree (3000 classes). It runs on PHP 8.4, so it does not check the library's >=8.2 floor.

Dagger\ maps to both src/ and generated/; --strict-ambiguous catches
a class defined in both.

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