PHPStan scan is failing: 'At least one path must be specified to analyse'

Created on 23 March 2023, over 1 year ago
Updated 30 September 2023, about 1 year ago

Problem/Motivation

I'm running a scan on an installed contrib module. This error comes back (I've replaced parts of the phpstan path and module path with 'site', for privacy):

PHPStan command failed:
/usr/local/php81/bin/php /home/site/vendor/bin/phpstan analyse --memory-limit=1500M --error-format=json --configuration=/tmp/upgrade_status/deprecation_testing.neon /home/site/public_html/modules/contrib/link_icons

Command output:
Content-type: text/html; charset=UTF-8

Command error:
At least one path must be specified to analyse.

Steps to reproduce

Installed v4.0.0 of upgrade_status using Composer, selected contributed module in the report, submitted scan.

Proposed resolution

I'm not sure why this is happening. Running the same command from my CLI gives the same response. I have tried specifying the path to the module within the /tmp/upgrade_status/deprecation_testing.neon configuration file (under 'paths:'), but that doesn't work either.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom natts London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024