Skip to content

Commit 1f55180

Browse files
authored
forbidCheckedExceptionInCallable: remove limitation (#247)
1 parent 04cf295 commit 1f55180

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,6 @@ class UserEditFacade
390390
}
391391
```
392392

393-
#### Limitations
394-
- 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))
395-
396393
### forbidCheckedExceptionInYieldingMethod
397394
- 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.
398395
- This behaviour cannot be easily reflected within PHPStan exception analysis and may cause [false negatives](https://phpstan.org/r/d07ac0f0-a49d-4f82-b1dd-1939058bbeed).

0 commit comments

Comments
 (0)