rectorphp / rector

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
https://getrector.com
MIT License
8.79k stars 688 forks source link

rector-prefixed 0.7 throw PhpStormStubsMap errors #2878

Closed shaal closed 4 years ago

shaal commented 4 years ago
Subject Details
Rector version v0.7 (invoke vendor/bin/rector --version)
PHP version PHP 7.3 (invoke php -v)
Full Command vendor/bin/rector process web/modules/contrib/config_filter --set dead-code --dry-run
Demo link
rector.yaml (see below)
imports:
  - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8-all-deprecations.yml" }
  # includes:
  # - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.5-deprecations.yml" }
  # - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.6-deprecations.yml" }
  # - { resource: "vendor/palantirnet/drupal-rector/config/drupal-8/drupal-8.7-deprecations.yml" }

parameters:
  autoload_paths:
    - 'web/core'
    - 'web/core/modules'
    - 'web/modules'
    - 'web/profiles'

  file_extensions:
    - module
    - theme
    - install
    - profile
    - inc
    - engine

services: ~

Current Behaviour

Rector 0.6.13 is working as expected. Steps to replicate:

Minimal PHP Code Causing Issue

```php
TomasVotruba commented 4 years ago

Try removing vendor, composer.lock and reinstall. Composer migh be buggy in resolving phar files

shaal commented 4 years ago

I tried, I am getting same errors :(

shaal commented 4 years ago

I am closing this issue as a duplicate of https://github.com/rectorphp/rector/issues/2879

There are more details about the problem in the other issue.