You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fatal error: Cannot use result of built-in function in write context #12102
self::createAnd(func_get_args()[0]); also works. Possibly it's assuming that extending class could have reference there, though i don't think this is technically possible with variadic method.
Activity
mvorisek commentedon Sep 1, 2023
it seems:
compiles, but:
and
does not
KapitanOczywisty commentedon Sep 1, 2023
self::createAnd(func_get_args()[0]);also works. Possibly it's assuming that extending class could have reference there, though i don't think this is technically possible with variadic method.mvorisek commentedon Sep 1, 2023
Even with
static::and final class/method :)Seems like a parser limitation.