- Issue created by @ptmkenny
When running a scan with drush: drush upgrade_status:analyze --all --ignore-contrib
If phpstan is not installed, this is the result:
[error] Project scan @name failed.
[error] Project scan @name failed.
[error] Project scan @name failed.
[error] Project scan @name failed.
[error] Project scan @name failed.
However, it should actually tell the developer that phpstan needs to be installed.
If you go to `admin/reports/upgrade-status` when PHPStan is not installed, the following error appears at the bottom of the page:
The PHPStan binary was not found in the default vendor directory based on the location of /var/www/html/composer.json. You may need to configure a vendor-dir in composer.json. See https://getcomposer.org/doc/06-config.md#vendor-dir. Attempted: /var/www/html/vendor/bin/phpstan. Scanning is not possible until this is resolved.
This same error should be shown for drush.
Install Drupal without installed the dev dependencies.
Enable upgrade status.
drush upgrade_status:analyze --all --ignore-contrib
Show the same error for drush that is shown in the admin UI.
Active
4.0
Code