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

False negative in PHPstan Internal error: Class "Drupal\webhook_receiver\WebhookReceiverPluginBase" not found #5

Open
alberto56 opened this issue Sep 1, 2022 · 1 comment

Comments

@alberto56
Copy link
Contributor

No description provided.

@alberto56
Copy link
Contributor Author

./scripts/lib/phpstan/dummy-classes.php contains:

namespace Drupal\webhook_receiver {
  class WebhookReceiver {
    public function webhooks() {
      return [];
    }
  }
  class WebhookReceiverPluginBase {}
}

Yet when I remove:

    - */eventbrite_one_way_sync/src/Plugin/WebhookReceiverPlugin/Eventbrite.php

from ./scripts/lib/phpstan/phpstan.neon

I get the error:

-- --------------------------------------------------------------------------- 
    Error                                                                      
-- --------------------------------------------------------------------------- 
    Internal error: Internal error: Class                                      
    "Drupal\webhook_receiver\WebhookReceiverPluginBase" not found in file      
    /var/www/html/modules/custom/eventbrite_one_way_sync/src/Plugin/WebhookRe  
    ceiverPlugin/Eventbrite.php                                                
    Run PHPStan with -v option and post the stack trace to:                    
    https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md       
    Child process error (exit code 1):                                         
-- --------------------------------------------------------------------------- 

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

1 participant