Skip to content

fix(phpstan): mark node_modules as an optional exclude - #20

Merged
AnuragVasanwala merged 1 commit into
mainfrom
fix/phpstan-optional-node-modules
Oct 1, 2026
Merged

AnuragVasanwala merged 1 commit into
mainfrom
fix/phpstan-optional-node-modules

Conversation

@aryanjasala

Copy link
Copy Markdown
Member

composer phpstan fails on a checkout that has only run composer install:

Invalid entry in excludePaths:
Path ".../node_modules" is neither a directory, nor a file path, nor a fnmatch pattern.

PHPStan treats an excluded path that does not exist as a configuration error. This marks node_modules optional with (?), the same as theme-elementary does. Follow-up to #2.

Testing

  • composer phpstan passes with and without node_modules/

composer phpstan failed on a Composer-only checkout with "Path .../node_modules
is neither a directory, nor a file path, nor a fnmatch pattern". Matches the
theme's config.
@AnuragVasanwala
AnuragVasanwala merged commit 66fce9a into main Oct 1, 2026
51 of 52 checks passed
@AnuragVasanwala
AnuragVasanwala deleted the fix/phpstan-optional-node-modules branch October 1, 2026 18:25
@aryanjasala aryanjasala mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants