Fix example wrt. recent PHP versions

As of PHP 7.3.0, the usage of undefined variables with compact() trigger
a notice, and as their support should be considered legacy behavior.
Therefore we remove the variable from the example.

Patch provided by anonymous user.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347684 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2019-06-30 09:39:45 +00:00
parent b21947c4f7
commit 930f983b23

View file

@ -99,7 +99,7 @@ $event = "SIGGRAPH";
$location_vars = array("city", "state");
$result = compact("event", "nothing_here", $location_vars);
$result = compact("event", $location_vars);
print_r($result);
?>
]]>