Re: [RFC] Reclassifying engine warnings
| From: | Claude Pache | Date: | Thu, 12 Sep 2019 13:55:04 +0000 |
| Subject: | Re: [RFC] Reclassifying engine warnings | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106945@lists.php.net to get a copy of this message | ||
> Le 12 sept. 2019 à 15:33, Marco Pivetta <ocramius@gmail.com> a écrit :
>
> $foo[$key1][$key2] = ($foo[$key1][$key2] ?? 0) + 1;
>
> Marco Pivetta
That violates blatantly DRY (twice the exact same lengthy expression
$foo[$key1][$key2]), so it is not a satisfactory solution.
—Claude