-
-
Notifications
You must be signed in to change notification settings - Fork 469
Add RootResolverSignatureRector to auto-fix root resolver signatures #2779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 36 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
01508dd
Extract RootType::namespaces() and refactor FieldValue::parentNamespa…
spawnia 3683814
Add RootResolverSignatureRector with type-fixing behavior
spawnia be9a69c
Add name normalization tests for RootResolverSignatureRector
spawnia e6f85c1
Document root resolvers and the RootResolverSignatureRector rule
spawnia 89bcd0b
Require Larastan bootstrap for RootResolverSignatureRector
spawnia 1110380
Use protected visibility in RootResolverSignatureRector
spawnia 96d6bfb
Ignore docs/superpowers in .gitignore
spawnia 9d88837
Fix isMissingRootParam producing duplicate param names
spawnia 13435be
Validate paramNames element types in configure()
spawnia 6d7dacd
Throw when resolver namespaces are empty (misconfigured bootstrap)
spawnia 2ac1ac8
Refactor RootResolverSignatureRector for clarity
spawnia 7acf822
Fix docs: sentence line break and missing $args insertion bullet
spawnia 1840f90
Add missing test fixtures for fixObjectParam paths
spawnia 03a4ef9
Add CHANGELOG entry for RootResolverSignatureRector
spawnia ebab0a4
Apply fixes from tooling (rector, php-cs-fixer, phpstan)
spawnia d9f02dd
Fix normalizeNames to rename variable usages in method body
spawnia 4db7570
Use mixed $root in docs example for PHP 8.0/8.1 compat
spawnia 5c95630
Replace assert with InvalidConfigurationException for paramNames
spawnia 046cee7
Replace TODO placeholder with actual PR number in CHANGELOG
spawnia 332fee5
Keep rector/rector installed in CI to validate Rector code
spawnia 585638b
Keep larastan installed in PHPUnit CI job
spawnia be1c194
Add @dataProvider annotations for PHPUnit 9.x compatibility
spawnia 837450d
Merge branch 'master' into root-resolver-signature-rector-rule
spawnia a657821
fix risky test
spawnia 20d9943
bump phpstan and rector minimum versions
spawnia ed8b242
fix risky test by avoiding AbstractRectorTestCase
spawnia c21ea81
Fix CI dependency conflicts between rector and phpstan
spawnia ced5f40
Exclude Rector files from PHPStan analysis
spawnia 5b695b5
Validate RootType::namespaces() returns non-empty strings
spawnia 6c85faf
Address code style review comments
spawnia db79118
Pin PHP 8.2 target in Rector test configs
spawnia 4934a86
Use imports instead of FQCNs for GraphQLContext and ResolveInfo
spawnia c633c64
Use array-key in RootType::namespaces() return type annotation
spawnia 3d1eaa5
Apply php-cs-fixer changes
spawnia f14e4ba
Don't add args param when root was already present without args
spawnia b6d2dec
Strip useless single root params instead of adding args
spawnia 60a42e1
Update docs to match single-param stripping behavior
spawnia 3597bd9
Reindex namespaces array to guarantee list return type
spawnia 9cfe2e1
Document that the rule assumes all __invoke classes in resolver paths…
spawnia d368c88
Add docs for RootResolverSignatureRector including known limitation
spawnia 82e6e14
Move Rector docs to testing/rector.md as canonical source, add short …
spawnia 3ab761e
Sync docs/6 from docs/master
spawnia 9bba73b
Handle ?array $args as a valid args parameter type
spawnia dacceb4
Remove unreachable ensureArgsParam block and method
spawnia 37fe9e8
Reindex paramNames to guarantee positional access
spawnia 5d21444
Annotate null $root examples as PHP 8.2+
spawnia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| .vscode | ||
| phpunit.xml | ||
| .gitpod.yml | ||
| docs/superpowers | ||
|
|
||
| # Generated files | ||
| .phpunit.result.cache | ||
|
|
||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.