Am 28.02.2022 um 22:05 schrieb Christoph M. Becker <cmbecke...@gmx.de>: > On 28.02.2022 at 21:51, Craig Francis wrote: > >> And after all of this, no-one has come up with a way to find or address >> this problem, e.g. >> >> <?php >> $nullable = ($_GET['a'] ?? NULL); >> echo htmlentities($nullable); >> ?> > > <?php > function my_htmlentities(string|null $value) { > return htmlentities($value ?? ""); > } > > $nullable = ($_GET['a'] ?? NULL); > echo my_htmlentities($nullable); > ?> > > The BC break doesn't appear to be that serious after all.
I'm not sure I get your point here: If you provide a user-land implementation of the previous behavior under a different name then the BC break cannot be serious? - Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php