From b6f887adf979f24f790b483b749abd850942d608 Mon Sep 17 00:00:00 2001 From: Gael Robin Date: Wed, 20 Nov 2024 10:17:53 +0100 Subject: [PATCH] Add bin to run phpstan on diff files --- bin/phpstan-changed.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 bin/phpstan-changed.sh diff --git a/bin/phpstan-changed.sh b/bin/phpstan-changed.sh new file mode 100644 index 0000000000..7ad82fffe1 --- /dev/null +++ b/bin/phpstan-changed.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +FILES=$(git ls-files -om --exclude-standard); +if [ -n "$FILES" ]; then + phpstan analyse "$FILES" +fi