From 28d4ae52b729e0e6fa48eb9e73c6476974fe1b1e Mon Sep 17 00:00:00 2001 From: Aryan Jasala Date: Thu, 1 Oct 2026 23:36:12 +0530 Subject: [PATCH] fix(phpstan): mark node_modules as an optional exclude 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. --- phpstan.neon.dist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4c6d195..8e789eb 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -19,5 +19,6 @@ parameters: # does not error when it is absent (no blocks, or before the first build). - assets/build (?) - vendor - - node_modules + # Optional: absent until `npm install` runs (a Composer-only checkout). + - node_modules (?) - tests