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
The typecast operator needs spaces on both sides, but the previous standard required that only the bang operator have a space on each side after an opening parenthesis for a construct.
if ( (int) $some_value) {
That code currently throws an error that only the bang operator can have a space after the opening parenthesis.
See http://dev.kohanaphp.com/issues/2230
The typecast operator needs spaces on both sides, but the previous standard required that only the bang operator have a space on each side after an opening parenthesis for a construct.
That code currently throws an error that only the bang operator can have a space after the opening parenthesis.
The Kohana Standard has been updated to make the above code correct.
http://dev.kohanaphp.com/projects/kohana2/wiki/CodingStyle
The text was updated successfully, but these errors were encountered: