Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 1389cf6

Browse files
Merge branch '0.1' into 0.2
2 parents 80dd646 + d1845b1 commit 1389cf6

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
script:
3131
- vendor/bin/phpcs -p
3232

33+
- stage: Code Quality
34+
env: STATIC_ANALYSIS
35+
script:
36+
- vendor/bin/phpstan analyse
37+
3338
stages:
3439
- Test
3540
- name: Code Quality

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"ext-mbstring": "*",
2424
"ext-tokenizer": "*",
2525
"lstrojny/functional-php": "^1.8",
26+
"phpstan/phpstan": "^0.10",
27+
"phpstan/phpstan-phpunit": "^0.10",
2628
"phpunit/phpunit": "^7.3",
2729
"symfony/finder": "^4.1"
2830
},

phpstan.neon.dist

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
parameters:
2+
autoload_files:
3+
- vendor/squizlabs/php_codesniffer/autoload.php
4+
level: max
5+
paths:
6+
- src
7+
- tests
8+
9+
includes:
10+
- vendor/phpstan/phpstan-phpunit/extension.neon
11+
- vendor/phpstan/phpstan-phpunit/rules.neon

tests/RulesetTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function it_finds_and_fixes_violations(
6262
sort($actual);
6363
sort($messages);
6464

65-
$this->assertSame($messages, $actual, $description);
65+
$this->assertSame($messages, $actual, $description ?? '');
6666
if ($fixedEncoding) {
6767
$this->assertSame($fixedEncoding, mb_detect_encoding($file->fixer->getContents(), 'UTF-8', true));
6868
}

0 commit comments

Comments
 (0)