If you run coder_format.php on code like the following, it will create syntax errors in the output:
class Foo {
function bar() {
throw new Baz();
}
}
The output for the above is like this:
class Foo {
function bar() {
thrownew Baz();
}
}
This is because the T_THROW token is not supported. I'll submit a patch in a moment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | coder-support-throw-1520122-1.patch | 608 bytes | TwoMice |
Comments
Comment #1
TwoMice commentedWith the attached patch, the above source file is output as follows:
Comment #2
TwoMice commentedComment #3
matt2000 commentedHad the same issue, patch fixes it.
Comment #4
douggreen commentedCommitted in http://drupalcode.org/project/coder.git/commit/b152c14ccbab92deb6d59c51f..., thanks!