From 4b83b5612556aacfb68ce9bb0d95ccff7c40292b Mon Sep 17 00:00:00 2001 From: Claudiu Cristea Date: Wed, 8 Jan 2025 10:53:24 +0200 Subject: [PATCH] Replace PHPStan baseline placeholder --- commands/web/phpstan | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/web/phpstan b/commands/web/phpstan index 01fa27d..7c73132 100755 --- a/commands/web/phpstan +++ b/commands/web/phpstan @@ -12,6 +12,8 @@ if ! command -v phpstan >/dev/null; then exit 1 fi test -e phpstan.neon || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/default-ref/assets/phpstan.neon +# See https://git.drupalcode.org/project/gitlab_templates/-/commit/a107b7f1f79af12e0b09f70be47b68e3f69b4504 +sed -i 's/BASELINE_PLACEHOLDER/phpstan-baseline.neon/g' phpstan.neon # Add an empty baseline file to ensure it exists. test -e phpstan-baseline.neon || touch phpstan-baseline.neon phpstan analyse $DDEV_DOCROOT/modules/custom "$@"