Skip to content

[TypeDeclarationDocblocks] Skip first class callable on AddReturnDocblockForJsonArrayRector#7322

Merged
samsonasik merged 2 commits intomainfrom
skip-first-c
Sep 24, 2025
Merged

[TypeDeclarationDocblocks] Skip first class callable on AddReturnDocblockForJsonArrayRector#7322
samsonasik merged 2 commits intomainfrom
skip-first-c

Conversation

@samsonasik
Copy link
Member

Avoid error:

There was 1 failure:

1) Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\AddReturnDocblockForJsonArrayRector\AddReturnDocblockForJsonArrayRectorTest::test with data set #2 ('/Users/samsonasik/www/rector-...hp.inc')
assert(!$this->isFirstClassCallable())

/Users/samsonasik/www/rector-src/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php:32
/Users/samsonasik/www/rector-src/rules/TypeDeclarationDocblocks/Rector/ClassMethod/AddReturnDocblockForJsonArrayRector.php:138

@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @TomasVotruba

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik enabled auto-merge (squash) September 24, 2025 03:19
@samsonasik samsonasik merged commit 8bd3c47 into main Sep 24, 2025
50 checks passed
@samsonasik samsonasik deleted the skip-first-c branch September 24, 2025 03:20
@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant