Skip to content

Commit 5314bf6

Browse files
authored
PHPStan extension installer, baseline, fixes (#602)
* Use PHPStan extension installer * Add few return types to anonymous functions * Add PHPStan baseline
1 parent 5f838d0 commit 5314bf6

File tree

13 files changed

+2340
-35
lines changed

13 files changed

+2340
-35
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"require-dev": {
1717
"doctrine/coding-standard": "^6.0",
1818
"phpbench/phpbench": "^0.14",
19+
"phpstan/extension-installer": "^1.0",
1920
"phpstan/phpstan": "0.12.2",
2021
"phpstan/phpstan-phpunit": "0.12.1",
2122
"phpstan/phpstan-strict-rules": "0.12.0",
@@ -52,6 +53,7 @@
5253
"lint" : "phpcs",
5354
"fix" : "phpcbf",
5455
"stan": "phpstan analyse --ansi --memory-limit 2048M",
56+
"phpstan-baseline": "phpstan analyse --ansi --error-format baselineNeon > phpstan-baseline.neon",
5557
"check": "composer lint && composer stan && composer test"
5658
}
5759
}

0 commit comments

Comments
 (0)