[php-src] PR #25158: Redundant check in declare lambda function
| From: | iluuu1994 | Date: | Mon, 02 Nov 2026 15:53:26 +0000 |
| Subject: | [php-src] PR #25158: Redundant check in declare lambda function | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40235@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25158
Author: iluuu1994
When
Z_TYPE(EX(This)) == IS_OBJECT, EX(func) is always non-static.
Also remove EXPECTED() while we're at it: Declaring static closures from
non-static functions is not rare.