Skip to content

Commit fd5d1c4

Browse files
authored
ImmediatelyCalledCallableThrowTypeExtension: use implicitThrows: false in test (#239)
1 parent 56aba60 commit fd5d1c4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/code.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function testNoThrow(): void
173173
try {
174174
$result = array_map('ucfirst', []);
175175
} finally {
176-
assertVariableCertainty(TrinaryLogic::createMaybe(), $result); // should be Yes https://github.com/phpstan/phpstan-src/pull/3016
176+
assertVariableCertainty(TrinaryLogic::createYes(), $result);
177177
}
178178
}
179179

@@ -240,7 +240,7 @@ public function testFirstClassCallableNoThrow(): void
240240
try {
241241
$result = array_map($this->noThrow(...), []);
242242
} finally {
243-
assertVariableCertainty(TrinaryLogic::createMaybe(), $result); // should be Yes https://github.com/phpstan/phpstan-src/pull/3016
243+
assertVariableCertainty(TrinaryLogic::createYes(), $result);
244244
}
245245
}
246246

tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/extension.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ services:
1212
ImmediatelyCalledCallableThrowTypeExtension\BaseImmediate::inheritedMethod: 1
1313
ImmediatelyCalledCallableThrowTypeExtension\Immediate::method: [0, 1]
1414

15+
parameters:
16+
exceptions:
17+
implicitThrows: false

0 commit comments

Comments
 (0)