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

[TypeDeclaration] Using native type scope get on ReturnTypeInferer #4648

Merged
merged 4 commits into from
Aug 4, 2023

Conversation

samsonasik
Copy link
Member

Getting type $this->nodeTypeResolver->getType() may read docblock which we mostly don't want, this PR make to use $this->nodeTypeResolver->getNativeType() instead.

@@ -1,18 +0,0 @@
<?php
Copy link
Member Author

Choose a reason for hiding this comment

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

this remove leftover fixture with .php suffix instead of .php.inc

use Rector\DowngradePhp80\Rector\MethodCall\DowngradeNamedArgumentRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(SymmetricArrayDestructuringToListRector::class);
Copy link
Member Author

Choose a reason for hiding this comment

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

SymmetricArrayDestructuringToListRector is removed at PR:

so this test no longer needed.

@@ -63,7 +63,6 @@ final class MissingInSetCommand extends Command
__DIR__ . '/../../vendor/rector/rector-phpunit/rules/CodeQuality' => __DIR__ . '/../../vendor/rector/rector-phpunit/config/sets/phpunit-code-quality.php',

// rector-downgrade
__DIR__ . '/../../vendor/rector/rector-downgrade-php/rules/DowngradePhp71' => __DIR__ . '/../../vendor/rector/rector-downgrade-php/config/set/downgrade-php71.php',
Copy link
Member Author

Choose a reason for hiding this comment

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

config/set/downgrade-php71.php no longer exists, so it must be unregistered from MissingInSetCommand

@samsonasik
Copy link
Member Author

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

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