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

rector-prefixed 0.7 throw PhpStormStubsMap errors #2878

Closed
shaal opened this issue Feb 18, 2020 · 3 comments
Closed

rector-prefixed 0.7 throw PhpStormStubsMap errors #2878

shaal opened this issue Feb 18, 2020 · 3 comments

Comments

@shaal
Copy link
Contributor

shaal commented Feb 18, 2020

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:

  • git clone git@github.com:palantirnet/drupal8-rector-sandbox.git
  • cd drupal8-rector-sandbox/
  • git checkout rector-0.7
  • composer install
  • vendor/bin/rector process web/modules/contrib/config_filter --set dead-code --dry-run

Minimal PHP Code Causing Issue

<?php 

// put file content here

Expected Behaviour

@TomasVotruba
Copy link
Member

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

@shaal
Copy link
Contributor Author

shaal commented Feb 18, 2020

I tried, I am getting same errors :(

@shaal
Copy link
Contributor Author

shaal commented Feb 18, 2020

I am closing this issue as a duplicate of #2879

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

@shaal shaal closed this as completed Feb 18, 2020
TomasVotruba added a commit that referenced this issue Sep 1, 2022
rectorphp/rector-src@84a48e5 [tests] Use file paths over value objects in tests to improve performance (#2878)
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