Replies: 1 comment 2 replies
-
|
Hi, I think it should be possible via autoload section: These files are parsed to static reflection and should be available there. If not, it still needs to be done probably. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to register stub files without adding them to the class mapping? The examples for Symfony, PHPUnit, etc add
stubs/*.phpand register them in the class map.PHPStan does stubbing with
.stubfiles and via configuration. Does Rector support this? Or is it only possible via autoloading?We did a stub in
drupal-rector:https://github.com/palantirnet/drupal-rector/blob/main/stubs/Drupal/Tests/BrowserTestBase.php. But this is registered before Drupal's PHPUnit bootstrap file, so it takes priority.Beta Was this translation helpful? Give feedback.
All reactions