Skip to content

Commit 00a60fa

Browse files
committed
Adding self-validation.
1 parent afbc5ba commit 00a60fa

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ install:
2424
- mkdir tmp
2525
script:
2626
- vendor/bin/phpunit --verbose;
27+
- composer phpstan
2728
after_success:
2829
- vendor/bin/coveralls -v

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
"TheCodingMachine\\PHPStan\\": "tests/"
3030
}
3131
},
32+
"scripts": {
33+
"phpstan": "phpstan analyse src -c phpstan.neon --level=4 --no-progress -vvv"
34+
},
3235
"extra": {
3336
"branch-alias": {
3437
"dev-master": "0.7-dev"

phpstan.neon

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#parameters:
2+
# ignoreErrors:
3+
4+
services:
5+
-
6+
class: TheCodingMachine\PHPStan\Rules\Exceptions\ThrowMustBundlePreviousExceptionRule
7+
tags:
8+
- phpstan.rules.rule
9+
-
10+
class: TheCodingMachine\PHPStan\Rules\Exceptions\DoNotThrowExceptionBaseClassRule
11+
tags:
12+
- phpstan.rules.rule
13+
-
14+
class: TheCodingMachine\PHPStan\Rules\Exceptions\EmptyExceptionRule
15+
tags:
16+
- phpstan.rules.rule
17+
-
18+
class: TheCodingMachine\PHPStan\Rules\TypeHints\MissingTypeHintInFunctionRule
19+
tags:
20+
- phpstan.rules.rule
21+
-
22+
class: TheCodingMachine\PHPStan\Rules\TypeHints\MissingTypeHintInMethodRule
23+
tags:
24+
- phpstan.rules.rule

src/Rules/TypeHints/AbstractMissingTypeHintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ abstract class AbstractMissingTypeHintRule implements Rule
3535

3636
public function __construct(Broker $broker)
3737
{
38-
3938
$this->broker = $broker;
4039
}
4140

0 commit comments

Comments
 (0)