From d2050e0ce5c3339a6f4f4f3d1d947078a28f444c Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 12 Nov 2024 17:58:11 +0100 Subject: Add ddev phpstan command to run phpstan in the container. --- .ddev/commands/web/phpstan | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .ddev/commands/web/phpstan diff --git a/.ddev/commands/web/phpstan b/.ddev/commands/web/phpstan new file mode 100755 index 0000000..35c7f88 --- /dev/null +++ b/.ddev/commands/web/phpstan @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +## Description: Run phpstan in the ddev environment +## Usage: phpstan [options] [paths] +## Example: ddev phpstan --error-format=raw > errors.log + +set -e + +./vendor/bin/phpstan $* -- cgit v1.2.3