Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflict in Kohana Standard (Kohana Bug #:2230) #2

Closed
jakemoffatt opened this issue Oct 13, 2009 · 1 comment
Closed

Fix conflict in Kohana Standard (Kohana Bug #:2230) #2

jakemoffatt opened this issue Oct 13, 2009 · 1 comment

Comments

@jakemoffatt
Copy link

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.

if ( (int) $some_value) {

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

@elazar
Copy link
Owner

elazar commented Dec 20, 2009

Fixed with this commit: http://github.com/elazar/phpcs-kohana/commit/50dfdec601cef02693c00795dcba82867a435cff

Thanks for reporting this issue and apologies for the long wait in it being resolved.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants