[php-src] PR #12005: gen_stub: replace switch() blocks with a match() statements
| From: | Ayesh | Date: | Sun, 20 Aug 2023 06:02:29 +0000 |
| Subject: | [php-src] PR #12005: gen_stub: replace switch() blocks with a match() statements | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23419@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12005
Author: Ayesh
Replaces a few
switch blocks with PHP 8.0 match statements. It is
opinionated of course, but I believe it makes the code cleaner, mandates a match, and uses only half
the lines.