Hi internals, > > As the intent of the resulting string is to obtain PHP code that will construct the variable, another option might be: var_constructor(). > > Wouldn't this be extremely confusing given that we use the name constructor > for OOP?
I'd agree, var_constructor($x) could be mistaken for a shorthand for `Closure::fromCallable([$x, '__construct'])` - Tyson -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php