I wanted to run an inspection on some Composer-installed code located in my vendor directory. When I right click on the /vendor/some-provider/src folder (in the Project tab), click "Inspect Code" and click the "Analyze" button I get the following:
Code inspection did not find anything to report. 0 files processed in 'Selected Files'.
I know there are files in my local directory, and I know for sure they contain code that is not compatible with PHP8.0. If I open one of the package files directly in the IDE, I get a green "No problems found" checkmark in the upper right corner. If I then copy/paste that code into a scratch file, it immediately reports 2 errors and 12 warnings from my Inspection profile.
My guess is that PHPstorm excludes non-package files from the Inspect, and I am wondering if there is some way around that?