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
<?phperror_reporting(E_ALL);
function &y()
{
yieldnull; // warningyield; // no warning
}
foreach (y() as &$y);
Resulted in this output:
PHP Notice: Only variable references should be yielded by reference in /home/user10/test.php on line 5
But I expected this output instead:
PHP Notice: Only variable references should be yielded by reference in /home/user10/test.php on line 5
PHP Notice: Only variable references should be yielded by reference in /home/user10/test.php on line 6