Skip to content

Commit 8345add

Browse files
committed
fix phpstan and folder name
1 parent 42290af commit 8345add

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

phpstan.neon

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ parameters:
44
- src
55
- tests
66
excludePaths:
7-
- tests/Rules/data
7+
- tests/Rules/UseSafeCallablesRule
8+
- tests/Rules/UseSafeClassesRule
9+
- tests/Rules/UseSafeFunctionsRule
810
ignoreErrors:
911
-
1012
message: '#^Implementing PHPStan\\Rules\\IdentifierRuleError is not covered by backward compatibility promise\. The interface might change in a minor PHPStan version\.$#'

tests/Rules/UseSafeCallablesRuleTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function getRule(): Rule
1717

1818
public function testUnsafe(): void
1919
{
20-
$this->analyse([__DIR__ . '/UseSafeCallables/unsafe.php'], [
20+
$this->analyse([__DIR__ . '/UseSafeCallablesRule/unsafe.php'], [
2121
[
2222
"Function json_encode is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\\json_encode;' at the beginning of the file to use the variant provided by the 'thecodingmachine/safe' library.",
2323
3,
@@ -27,16 +27,16 @@ public function testUnsafe(): void
2727

2828
public function testUseSafe(): void
2929
{
30-
$this->analyse([__DIR__ . '/UseSafeCallables/use_safe.php'], []);
30+
$this->analyse([__DIR__ . '/UseSafeCallablesRule/use_safe.php'], []);
3131
}
3232

3333
public function testNativeSafe(): void
3434
{
35-
$this->analyse([__DIR__ . '/UseSafeCallables/native_safe.php'], []);
35+
$this->analyse([__DIR__ . '/UseSafeCallablesRule/native_safe.php'], []);
3636
}
3737

3838
public function testExpr(): void
3939
{
40-
$this->analyse([__DIR__ . '/UseSafeCallables/expr.php'], []);
40+
$this->analyse([__DIR__ . '/UseSafeCallablesRule/expr.php'], []);
4141
}
4242
}

0 commit comments

Comments
 (0)