From 54630030c35067c168847b3eaf109d93058e586a Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Mon, 24 Aug 2020 22:29:35 +0200 Subject: Add phpstan checks Signed-off-by: Sean Molenaar --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c25161d70..2ba124b9e 100644 --- a/Makefile +++ b/Makefile @@ -113,6 +113,11 @@ clean: phpcs: ./vendor/bin/phpcs --standard=PSR2 lib +# Reports PHP static violations +.PHONY: phpstan +phpstan: + ./vendor/bin/phpstan analyse --level=1 lib + # Same as clean but also removes dependencies installed by composer and # npm .PHONY: distclean @@ -192,4 +197,5 @@ test: # \Test\TestCase is only allowed to access the db if TRAVIS environment variable is set env TRAVIS=1 ./vendor/phpunit/phpunit/phpunit -c phpunit.integration.xml $(MAKE) phpcs + $(MAKE) phpstan ./bin/tools/generate_authors.php -- cgit v1.2.3