We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b8152 commit 733be88Copy full SHA for 733be88
commands/web/phpstan
@@ -18,4 +18,10 @@ test -e phpstan.neon || curl -OL https://git.drupalcode.org/project/gitlab_templ
18
sed -i 's/BASELINE_PLACEHOLDER/phpstan-baseline.neon/g' phpstan.neon
19
# Add an empty baseline file to ensure it exists.
20
test -e phpstan-baseline.neon || touch phpstan-baseline.neon
21
-phpstan analyse $DDEV_DOCROOT/$DRUPAL_PROJECTS_PATH "$@"
+
22
+EXTENSION_DIRECTORY=$DDEV_DOCROOT/$DRUPAL_PROJECTS_PATH/${DDEV_SITENAME//-/_}
23
+cd "$EXTENSION_DIRECTORY" || exit 1
24
+# Ensure PHPStan configuration is symlinked from project root.
25
+ln -s $DDEV_DOCROOT/phpstan.neon 2>/dev/null || true
26
+ln -s $DDEV_DOCROOT/phpstan-baseline.neon 2>/dev/null || true
27
+phpstan analyze . "$@"
0 commit comments