[php-src] Issue #7841: Match allow Lambda Functions

From: Date: Tue, 28 Dec 2021 14:26:18 +0000
Subject: [php-src] Issue #7841: Match allow Lambda Functions
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238605@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7841 Comment Author: iluuu1994 Match arms allow arbitrary expressions, including closures. But you need to call them yourself. https://3v4l.org/OEnWa Not calling the function is also already valid and returns the closure itself. Changing the meaning of that code would be a BC break (and pretty confusing). https://3v4l.org/vACd5

« previous php.bugs (#238605) next »