Skip to content
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

Make use of toPhpDocNode() - take #8 #4570

Merged
merged 2 commits into from
Jul 21, 2023

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Jul 21, 2023

@TomasVotruba TomasVotruba changed the title try phpdocnode on mappers Make use of toPhpDocNode() - take #8 Jul 21, 2023
@TomasVotruba TomasVotruba force-pushed the tv-make-use-of-phpstan-phpdoctype-8 branch 2 times, most recently from a19b1b1 to 00f99f9 Compare July 21, 2023 14:02
@TomasVotruba TomasVotruba force-pushed the tv-make-use-of-phpstan-phpdoctype-8 branch from 37b6da0 to 17b0924 Compare July 21, 2023 14:09
@TomasVotruba TomasVotruba merged commit 6cd3eec into main Jul 21, 2023
44 checks passed
@TomasVotruba TomasVotruba deleted the tv-make-use-of-phpstan-phpdoctype-8 branch July 21, 2023 14:12
Assert::allIsInstanceOf($callableTypeParameterNodes, CallableTypeParameterNode::class);

return new SpacingAwareCallableTypeNode($identifierTypeNode, $callableTypeParameterNodes, $returnDocTypeNode);
return $type->toPhpDocNode();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomasVotruba this may need fqcn with add \ if Closure is not in use statement, as mapToPhpParserNode() returns FullyQualified object.

this fqcn closure is valid doc https://phpstan.org/r/f2a7c394-a8b0-45ec-aebb-f0ad7dabe95a

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants