Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PHPStan and fix settings #854

Merged
merged 1 commit into from
Feb 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ clover.xml
# Ignore PHP CS Fixer local config and cache
.php_cs
.php_cs.cache

# Ignore PHPStan local config
.phpstan.neon
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export PHPSTAN_VERSION := 0.11.19
export PHPSTAN_VERSION := 0.12.8

vendor: composer.json
composer install
Expand All @@ -14,9 +14,9 @@ fmt: vendor
.PHONY: fmt

phpstan: vendor
vendor/bin/phpstan analyse -c phpstan.neon lib tests
vendor/bin/phpstan analyse lib tests
.PHONY: phpstan

phpstan-baseline: vendor
vendor/bin/phpstan analyse -c phpstan.neon --error-format baselineNeon lib tests > phpstan-baseline.neon
vendor/bin/phpstan analyse --error-format baselineNeon lib tests > phpstan-baseline.neon
.PHONY: phpstan-baseline
5 changes: 0 additions & 5 deletions phpstan.neon

This file was deleted.

10 changes: 10 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
includes:
- phpstan-baseline.neon

parameters:
level: 1

bootstrap: tests/bootstrap.php

ignoreErrors:
- '#Unsafe usage of new static\(\).#'