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
Right now, I'm checking the end line number of the namespace. If the end line number is smaller than any of the immediate descendants' end line numbers, this will assume it's namespace;, not namespace{}.
Line comments don't seem to have (end) line numbers
An attribute would definitely help, in case of files with one-liners (namespace Foo; interface InterfaceOnSameLine{})
TysonAndre
changed the title
Assume namespaces use semicolons by default when converting to php-ast
Fix edge cases checking if namespaces use semicolons when converting to php-ast
Sep 18, 2017
PHP-Parser doesn't tell you if a namespace with a block originally used semicolons.
lib/PhpParser/PrettyPrinterAbstract.php
The text was updated successfully, but these errors were encountered: