Re: [RFC] Reclassifying engine warnings
| From: | Stanislav Malyshev | Date: | Wed, 28 Aug 2019 19:48:33 +0000 |
| Subject: | Re: [RFC] Reclassifying engine warnings | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106770@lists.php.net to get a copy of this message | ||
Hi!
> Besides, we have tools available for years now to make this behaviour
> more defined:
>
> $counts[$key] = ($counts[$key] ?? 0) + 1;
Sure, that works. But I don't see any way this clunker is better than
$counts[$key]++
--
Stas Malyshev
smalyshev@gmail.com