Skip to content

Accept closing tags with no names in Symfony console output #1352

@BenMorel

Description

@BenMorel

Symfony console accepts XML-style tags in the output, for example:

$output->writeln('<error>foo</error>');

Unlike XML, the closing tag name is optional, i.e. this is valid:

$output->writeln('<fire>foo</>');

Unfortunately, PHPStorm doesn't like it:

image

More annoyingly, when you attempt to clear the closing tag name, it also clears the opening tag name, and there no real way to prevent this:

image

👇

image

Is this something the Symfony plugin could fix? I'd even be happy with just disabling any XML helpers in OutputInterface::write() strings.

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