[PR][php-langspec][#114][PHP-5.6] - switch cannot contain arbitrary statements

From: Date: Tue, 17 Feb 2015 16:01:18 +0000
Subject: [PR][php-langspec][#114][PHP-5.6] - switch cannot contain arbitrary statements
Groups: php.standards 
Request: Send a blank email to standards-+get-721@lists.php.net to get a copy of this message
You can view the Pull Request on github: https://github.com/php/php-langspec/pull/114 Pull Request Description: The definition of a switch statement was written too wage, incorrectly respectively: - a switch statement can only contain labeled-statement's and not arbitrary once - statements are optional in a switch statement - removed constrained for control expression (PHP does not force the expression to be a scalar: http://3v4l.org/3KZlG) - added constraint for case label expressions (maybe this was meant with control expression, anyway it was not correct entirely) (http://3v4l.org/lIMZJ / http://3v4l.org/5gDZM)

« previous php.standards (#721) next »