Skip to content

Commit 87afc32

Browse files
committed
Simplify getClosureScopeCacheKey
1 parent 3eea03b commit 87afc32

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/Analyser/MutatingScope.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,9 +912,6 @@ private function getClosureScopeCacheKey(): string
912912
$parts[] = sprintf('%s::%s', $exprString, $expressionTypeHolder->getType()->describe(VerbosityLevel::cache()));
913913
}
914914
$parts[] = '---';
915-
foreach ($this->nativeExpressionTypes as $exprString => $expressionTypeHolder) {
916-
$parts[] = sprintf('%s::%s', $exprString, $expressionTypeHolder->getType()->describe(VerbosityLevel::cache()));
917-
}
918915

919916
$parts[] = sprintf(':%d', count($this->inFunctionCallsStack));
920917
foreach ($this->inFunctionCallsStack as [$method, $parameter]) {

tests/PHPStan/Analyser/nsrt/native-types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public function doFoo(): void
346346
};
347347

348348
assertType('non-empty-string', $f());
349-
assertNativeType('string', $f());
349+
assertNativeType('non-empty-string', $f());
350350

351351
assertType('non-empty-string', (function (): string {
352352
return funcWithANativeReturnType();

0 commit comments

Comments
 (0)