From 1f551800406fdba0492a9a485117e95bb1cf187a Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Wed, 15 May 2024 09:46:08 +0200 Subject: [PATCH] forbidCheckedExceptionInCallable: remove limitation (#247) --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 0160c0b..73c265b 100644 --- a/README.md +++ b/README.md @@ -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).