Skip to content

Commit

Permalink
forbidCheckedExceptionInCallable: remove limitation (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed May 15, 2024
1 parent 04cf295 commit 1f55180
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,6 @@ class UserEditFacade
}
```

#### Limitations
- Immediatelly called closure (`(function(){})()` syntax) is not considered immediatelly-called even though it is ([related issue](https://github.com/shipmonk-rnd/phpstan-rules/issues/210))

### forbidCheckedExceptionInYieldingMethod
- Denies throwing [checked exception](https://phpstan.org/blog/bring-your-exceptions-under-control) within yielding methods as those exceptions are not throw upon method call, but when generator gets iterated.
- This behaviour cannot be easily reflected within PHPStan exception analysis and may cause [false negatives](https://phpstan.org/r/d07ac0f0-a49d-4f82-b1dd-1939058bbeed).
Expand Down

0 comments on commit 1f55180

Please sign in to comment.