diff --git a/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/code.php b/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/code.php index af7a0f1..5f15830 100644 --- a/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/code.php +++ b/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/code.php @@ -173,7 +173,7 @@ public function testNoThrow(): void try { $result = array_map('ucfirst', []); } finally { - assertVariableCertainty(TrinaryLogic::createMaybe(), $result); // should be Yes https://github.com/phpstan/phpstan-src/pull/3016 + assertVariableCertainty(TrinaryLogic::createYes(), $result); } } @@ -240,7 +240,7 @@ public function testFirstClassCallableNoThrow(): void try { $result = array_map($this->noThrow(...), []); } finally { - assertVariableCertainty(TrinaryLogic::createMaybe(), $result); // should be Yes https://github.com/phpstan/phpstan-src/pull/3016 + assertVariableCertainty(TrinaryLogic::createYes(), $result); } } diff --git a/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/extension.neon b/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/extension.neon index cc0fff4..0962298 100644 --- a/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/extension.neon +++ b/tests/Extension/data/ImmediatelyCalledCallableThrowTypeExtension/extension.neon @@ -12,3 +12,6 @@ services: ImmediatelyCalledCallableThrowTypeExtension\BaseImmediate::inheritedMethod: 1 ImmediatelyCalledCallableThrowTypeExtension\Immediate::method: [0, 1] +parameters: + exceptions: + implicitThrows: false