From 0ba80ddbbdbb591bfd468b27d780c87fa02ae795 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Wed, 15 May 2024 09:43:13 +0200 Subject: [PATCH] forbidCheckedExceptionInCallable: remove limitation --- 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).