Skip to content

Fix edge cases checking if namespaces use semicolons when converting to php-ast #10

Open
@TysonAndre

Description

@TysonAndre

PHP-Parser doesn't tell you if a namespace with a block originally used semicolons.

lib/PhpParser/PrettyPrinterAbstract.php

  • If all of the namespaces are not in the global namespace, use semicolons (Most common)
  • If at least one is the global namespace, then convert to block style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions