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

Could not process after update to 0.6.14 #2837

Closed
snapshotpl opened this issue Feb 10, 2020 · 4 comments
Closed

Could not process after update to 0.6.14 #2837

snapshotpl opened this issue Feb 10, 2020 · 4 comments

Comments

@snapshotpl
Copy link
Contributor

Subject Details
Rector version e.g. v0.6.14 (invoke vendor/bin/rector --version)
PHP version e.g. PHP 7.4.2 (invoke php -v)

Current Behaviour

After update from 0.6.13 to 0.6.14 I get a lot of errors like:

 [ERROR] Could not process                                                      
         "/var/www/module/ProductRelations/src/Implementation/MockRelatedProduct
         sQuery.php" file, due to:                                              
         "Class '_HumbugBoxebb6c51d1e3e\JetBrains\PHPStormStub\PhpStormStubsMap'
         not found".

I use prefixed version.

@snapshotpl
Copy link
Contributor Author

There's also:

 [ERROR] Could not process                                                      
         "/var/www/module/Przelewy24/src/Domain/Transaction.php" file, due to:  
         "Argument 1 passed to                                                  
         Rector\PhpParser\Node\Manipulator\ClassManipulator::getProperty() must 
         be an instance of PhpParser\Node\Stmt\ClassLike, null given, called in 
         phar:///var/www/vendor/rector/rector-prefixed/rector/packages/CodeQuali
         ty/src/Rector/If_/RemoveAlwaysTrueConditionSetInConstructorRector.php  
         on line 149".

@snapshotpl
Copy link
Contributor Author

Looks like first error appear when I have method with iterable as return type:

public function getItems(): iterable {
  return $this->items;
}

@TomasVotruba
Copy link
Member

Duplicate of #2749

We're now waiting for new relase of PHPStan, where it should be fixed

@snapshotpl
Copy link
Contributor Author

@TomasVotruba thanks!

TomasVotruba added a commit that referenced this issue Aug 24, 2022
rectorphp/rector-src@d894ccc [DeadCode] Skip object shape pseudo-type in RemoveNonExistingVarAnnotationRector (#2837)
TomasVotruba added a commit that referenced this issue Aug 24, 2022
rectorphp/rector-src@d894ccc [DeadCode] Skip object shape pseudo-type in RemoveNonExistingVarAnnotationRector (#2837)
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

No branches or pull requests

2 participants