[php-src] Issue #7841: Match allow Lambda Functions
| From: | diegoagudo | Date: | Tue, 28 Dec 2021 14:19:16 +0000 |
| Subject: | [php-src] Issue #7841: Match allow Lambda Functions | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238602@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7841
Author: diegoagudo
### Description
Currently
match() not allow use lambda functions.
If you try
`
$test = 'test';
$a = match($test) {
'test' => function($test) {
print_r($test);
}
};
`
- Return
-- _Today_: Nothing is returned.
-- _New_ implementation: "test"