You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The phpstan config points to an include file in the vendor directory within the plugin, but if the plugin is installed as part of a larger project, the vendor directory is up a few levels (either ../../vendor, or ../../client-mu-plugins/vendor). This should be updated in phpstan.neon based on the user's preference of installing as part of a larger project and hoisting composer dependencies to the root.
Steps To Reproduce
Install a new plugin based on this repo
Say it's part of a larger project
Choose the option to hoist composer dependencies to the root
Add a script to the root config to run phpstan in the plugin's directory (e.g., cd plugins/my-cool-plugin && phpstan)
Notice that the command fails with an error that it can't find the include file in the vendor path
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description of the bug
The phpstan config points to an include file in the vendor directory within the plugin, but if the plugin is installed as part of a larger project, the vendor directory is up a few levels (either
../../vendor
, or../../client-mu-plugins/vendor
). This should be updated in phpstan.neon based on the user's preference of installing as part of a larger project and hoisting composer dependencies to the root.Steps To Reproduce
cd plugins/my-cool-plugin && phpstan
)Additional Information
No response
The text was updated successfully, but these errors were encountered: