dcycle / eventbrite_one_way_sync

0 stars 0 forks source link

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

Open alberto56 opened 2 years ago

alberto56 commented 2 years ago

./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):                                         
 -- ---------------------------------------------------------------------------