Page MenuHomePhorge

Deprecate id() function: no longer necessary since PHP 5.4.0
Open, WishlistPublic

Description

The id() function is syntax sugar that returns the first argument as-is for PHP 5.4.0 that explodes with this:

(new ClassName())
  ->method();

So, there is no need to do this anymore I guess, since it adds extra overhead:

id(new ClassName())
  ->method();

We can at least avoid to introduce id() on new code in the first phase.