Skip to content

Commit

Permalink
ImmediatelyCalledCallableThrowTypeExtension: use implicitThrows: fals…
Browse files Browse the repository at this point in the history
…e in test
  • Loading branch information
janedbal committed May 14, 2024
1 parent 56aba60 commit 06d2f2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ services:
ImmediatelyCalledCallableThrowTypeExtension\BaseImmediate::inheritedMethod: 1
ImmediatelyCalledCallableThrowTypeExtension\Immediate::method: [0, 1]

parameters:
exceptions:
implicitThrows: false

0 comments on commit 06d2f2e

Please sign in to comment.