- ๐ฎ๐ณIndia Sana.Neyazi
I am also getting the similar issue while scanning one of my custom module,
0 PHPStan command failed: /usr/bin/php /var/www/html/voya-project/drupal-platform/vendor/bin/phpstan analyse --memory-limit=1500M --error-format=json --configuration=/tmp/upgrade_status/deprecation_testing.neon /var/www/html/voya-project/drupal-platform/docroot/modules/custom/purgatory/voya_van_migrate_content Command output: Empty. Command error: ! [NOTE] No files found to analyse. [WARNING] This will cause a non-zero exit code in PHPStan 2.0.
Core : 9.5
Php : 8.1 - ๐ญ๐บHungary Gรกbor Hojtsy Hungary
No .php/.module file in your module? That would be the only case this would happen.
- ๐ฒ๐ฝMexico eliasdelatorre
I do have a legacy module with no .php or .module on it.
Is there a way of locally patch the PHPStan to disregard/ignore this error when no files are present to scan? I understand it's a stretch, but it's a special case I have to deal with. Thanks.
- ๐บ๐ธUnited States alison
I have the same issue on Features modules that don't have any custom module code, only features code/config.
I'm wondering if ๐ Error when module don't has a php code to review Needs work should be considered a duplicate of this -- or a follow-up to this, since this issue is closed...
Kinda just thinking out loud. It would be nice for modules without any PHP to be skipped by PHPStan, idk what kind of a lift that is.
- ๐บ๐ธUnited States alison
Shoot, I just saw this issue is 3.x, the other one is 4.x ๐ Error when module don't has a php code to review Needs work (and I have 4.0.0 installed) -- sorry for my confusion!
- ๐ง๐ชBelgium xaa Brussels
hi there, same issue here when scanning the custom theme (using 8.x-3.19, php 7.4).
- ๐ช๐ธSpain gmoraleb
Hello guys,
I have the same problem here, no .php/.module file and php 8.1:
PHPStan command failed
! [NOTE] No files found to analyse. [WARNING] This will cause a non-zero exit code in PHPStan 2.0.