auto install phpstan if not installed by using composer.

main
Robert 2 years ago
parent 1862c78b5b
commit 2735c77e67
  1. 5
      static_tests.sh

@ -1,6 +1,11 @@
#!/bin/bash
if [ ! -x vendor/bin/phpstan ]; then
if which composer >/dev/null 2>&1; then
echo "Running Composer to install phpstan."
composer require --dev phpstan/phpstan
else
echo "Please install php composer!"
fi
fi
./vendor/bin/phpstan analyse
Loading…
Cancel
Save