Skip to content

Commit 1aa4bc5

Browse files
committed
Lint fixes
1 parent c3041ea commit 1aa4bc5

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

src/Reflection/ReflectionProvider/DummyReflectionProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ public function getSignatureMapProvider(): SignatureMapProvider
7474
{
7575
throw new ShouldNotHappenException();
7676
}
77+
7778
}

src/Reflection/ReflectionProvider/MemoizingReflectionProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use PHPStan\Reflection\NamespaceAnswerer;
1111
use PHPStan\Reflection\ReflectionProvider;
1212
use PHPStan\Reflection\SignatureMap\SignatureMapProvider;
13-
1413
use function strtolower;
1514

1615
final class MemoizingReflectionProvider implements ReflectionProvider

src/Reflection/SignatureMap/FunctionSignatureMapProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,5 @@ public function getTypeFromString(string $typeString, ?string $className): Type
264264
{
265265
return $this->parser->getTypeFromString($typeString, $className);
266266
}
267+
267268
}

src/Reflection/SignatureMap/Php8SignatureMapProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,4 +503,5 @@ public function getTypeFromString(string $typeString, ?string $className): Type
503503
{
504504
return $this->functionSignatureMapProvider->getTypeFromString($typeString, $className);
505505
}
506+
506507
}

src/Reflection/SignatureMap/SignatureMapProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ public function hasClassConstantMetadata(string $className, string $constantName
4141
public function getClassConstantMetadata(string $className, string $constantName): array;
4242

4343
public function getTypeFromString(string $typeString, ?string $className): Type;
44+
4445
}

tests/PHPStan/Analyser/LegacyNodeScopeResolverTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8491,10 +8491,10 @@ public function testDynamicConstants(
84918491
$expression,
84928492
'die',
84938493
[
8494-
'DynamicConstants\\DynamicConstantClass::DYNAMIC_CONSTANT_IN_CLASS',
8495-
'GLOBAL_DYNAMIC_CONSTANT',
8494+
0 => 'DynamicConstants\\DynamicConstantClass::DYNAMIC_CONSTANT_IN_CLASS',
8495+
1 => 'GLOBAL_DYNAMIC_CONSTANT',
84968496
'DynamicConstants\\DynamicConstantClass::DYNAMIC_CONSTANT_WITH_EXPLICIT_TYPES_IN_CLASS' => 'string|null',
8497-
'GLOBAL_DYNAMIC_CONSTANT_WITH_EXPLICIT_TYPES' => 'string|null'
8497+
'GLOBAL_DYNAMIC_CONSTANT_WITH_EXPLICIT_TYPES' => 'string|null',
84988498
],
84998499
);
85008500
}

0 commit comments

Comments
 (0)