On 28/06/2021 20:25, Olle Härstedt wrote:
Usage (ignoring the pesky undefined constant warnings ><):
Unfortunately, you can't ignore those warnings; not least because they're fatal errors in PHP 8, as they frankly should have been in PHP 3.
You can use our current ugly callable syntax (strings and two-element arrays); you can tackle the complexity of unifying functions with constants, and methods with properties (as Levi explained in the other thread); or you can add a dedicated callable syntax, which the PFA proposal gets us with bells on.
Regards, -- Rowan Tommins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php