drupal-rector and phpstan-drupal are in conflict

Created on 21 September 2023, 9 months ago
Updated 26 April 2024, 2 months ago

Drupal version - 9.5.10

Drupal Rector version - 0.15.1

Problem / Motivation

During running drupal-rector I faced with error:
[ERROR] "PHPStan\ShouldNotHappenException" thrown in
"/Users/[user_name]/Projects/[project_name]/vendor/mglaman/phpstan-drupal/drupal-autoloader.php" on line 7
while loading bootstrap file
/Users/[user_name]/Projects/[project_name]/vendor/mglaman/phpstan-drupal/drupal-autoloader.php: The autoloader
did not receive the container.

Seems like drupal-rector and phpstan-drupal are in conflict

I use drupal-rector v.0.15.1 and phpstan-drupal v.1.1.30 (I also increased version to 1.2.0 - it doesn't helps me)

πŸ› Bug report
Status

Closed: cannot reproduce

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Luckie Joe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Luckie Joe
  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)

    There are at least two possible interpretations of this report:

    1) When I run [this rector command] an error is thrown
    2) After I run [this rector command] and then I run [this phpstan command] an error is thrown

    These are two very different problems.

    I don't understand the steps you are taklng here. Can you provide a bulleted list that includes the commands?

  • Status changed to Closed: cannot reproduce 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)
Production build 0.69.0 2024