Commit 4f98bb84 by Qiang Xue

Merge branch 'master' of git.yiisoft.com:yii2

parents 5f3e24d8 9db9adcf
......@@ -225,21 +225,19 @@ Use the following formatting for switch:
switch ($this->phpType) {
case 'string':
$a = (string)$value;
break;
break;
case 'integer':
case 'int':
$a = (integer)$value;
break;
break;
case 'boolean':
$a = (boolean)$value;
break;
break;
default:
$a = null;
break;
}
~~~
Do not omit `break`.
### Code documentation
- Refer ot [phpDoc](http://phpdoc.org/) for documentation syntax.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment