Skip to content

Commit 28965c4

Browse files
Replace PHPStan baseline placeholder (#99)
1 parent bddfc71 commit 28965c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands/web/phpstan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if ! command -v phpstan >/dev/null; then
1212
exit 1
1313
fi
1414
test -e phpstan.neon || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/assets/phpstan.neon
15+
# See https://git.drupalcode.org/project/gitlab_templates/-/commit/a107b7f1f79af12e0b09f70be47b68e3f69b4504
16+
sed -i 's/BASELINE_PLACEHOLDER/phpstan-baseline.neon/g' phpstan.neon
1517
# Add an empty baseline file to ensure it exists.
1618
test -e phpstan-baseline.neon || touch phpstan-baseline.neon
1719
phpstan analyse $DDEV_DOCROOT/modules/custom "$@"

0 commit comments

Comments
 (0)