Skip to content

Commit 9b1b674

Browse files
committed
Hooks fixed
1 parent 3eb759a commit 9b1b674

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
"extra": {
3737
"hooks": {
3838
"pre-commit": [
39-
"composer run phpunit",
40-
"composer run phpstan",
41-
"composer run php-cs-fixer:dry-run"
39+
"composer run phpunit && phpstan && composer run php-cs-fixer:dry-run"
4240
]
4341
}
4442
}

tests/NamespaceRestrictionRuleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ public function testRule(): bool
5252
$this->analyse([__DIR__.'/Cases/Core/InvalidUsings.php'], [
5353
[
5454
'Usings to MintwareDe\Tests\PhpStanNamespaceConstraints\Cases\Data\DataDependency are forbidden from MintwareDe\Tests\PhpStanNamespaceConstraints\Cases\Core',
55-
6,
55+
7,
5656
],
5757
]);
5858
$this->analyse([__DIR__.'/Cases/Core/InvalidUsings2.php'], [
5959
[
6060
'Usings to MintwareDe\Tests\PhpStanNamespaceConstraints\Cases\Data\DataDependency are forbidden from MintwareDe\Tests\PhpStanNamespaceConstraints\Cases\Core',
61-
6,
61+
7,
6262
],
6363
[
6464
'Usings to MintwareDe\Tests\PhpStanNamespaceConstraints\Cases\UserInterface\UserInterfaceDependency are forbidden from MintwareDe\Tests\PhpStanNamespaceConstraints\Cases\Core',
65-
7,
65+
8,
6666
],
6767
]);
6868

0 commit comments

Comments
 (0)