Skip to content

Commit 7b3fc68

Browse files
committed
Fix CS
1 parent c5dc037 commit 7b3fc68

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

tests/PHPStan/Analyser/NodeScopeResolverTest.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -8979,16 +8979,20 @@ public function dataDynamicConstants(): array
89798979
[
89808980
'string',
89818981
'DynamicConstants\DynamicConstantClass::DYNAMIC_CONSTANT_IN_CLASS',
8982-
], [
8982+
],
8983+
[
89838984
"'abc123def'",
89848985
'DynamicConstants\DynamicConstantClass::PURE_CONSTANT_IN_CLASS',
8985-
], [
8986+
],
8987+
[
89868988
"'xyz'",
89878989
'DynamicConstants\NoDynamicConstantClass::DYNAMIC_CONSTANT_IN_CLASS',
8988-
], [
8990+
],
8991+
[
89898992
'bool',
89908993
'GLOBAL_DYNAMIC_CONSTANT',
8991-
], [
8994+
],
8995+
[
89928996
'123',
89938997
'GLOBAL_PURE_CONSTANT',
89948998
],

tests/PHPStan/Command/ErrorFormatter/BaselineNeonErrorFormatterTest.php

+13-7
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,19 @@ public function testFormatErrorMessagesRegexEscape(): void
140140
);
141141

142142
self::assertSame(
143-
trim(Neon::encode(['parameters' => ['ignoreErrors' => [
144-
[
145-
'message' => "#^Escape Regex with file \\# ~ ' \\(\\)$#",
146-
'count' => 1,
147-
'path' => 'Testfile',
148-
],
149-
]]], Neon::BLOCK)),
143+
trim(
144+
Neon::encode([
145+
'parameters' => [
146+
'ignoreErrors' => [
147+
[
148+
'message' => "#^Escape Regex with file \\# ~ ' \\(\\)$#",
149+
'count' => 1,
150+
'path' => 'Testfile',
151+
],
152+
],
153+
],
154+
], Neon::BLOCK)
155+
),
150156
trim($this->getOutputContent())
151157
);
152158
}

tests/PHPStan/Reflection/ClassReflectionTest.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public function dataClassHierarchyDistances(): array
4444
],
4545
[
4646
\HierarchyDistances\Ipsum::class,
47-
PHP_VERSION_ID < 70400 ? [
47+
PHP_VERSION_ID < 70400 ?
48+
[
4849
\HierarchyDistances\Ipsum::class => 0,
4950
\HierarchyDistances\TraitOne::class => 1,
5051
\HierarchyDistances\Lorem::class => 2,
@@ -55,7 +56,9 @@ public function dataClassHierarchyDistances(): array
5556
\HierarchyDistances\ExtendedIpsumInterface::class => 7,
5657
\HierarchyDistances\SecondIpsumInterface::class => 8,
5758
\HierarchyDistances\ThirdIpsumInterface::class => 9,
58-
] : [
59+
]
60+
:
61+
[
5962
\HierarchyDistances\Ipsum::class => 0,
6063
\HierarchyDistances\TraitOne::class => 1,
6164
\HierarchyDistances\Lorem::class => 2,

0 commit comments

Comments
 (0)