Skip to content

Multiline string with variable indented more on every format on php-version >= 7.3 #1593

@Epskampie

Description

@Epskampie

@prettier/plugin-php v0.16.0
Playground link

Input:

<?php

class A
{
    public function b()
    {
        $this->c("
            This multiline string
            is indented more and more on every save.
            But only on --php-version >= 7.3
            and only when a variable is present: $test
        ");
    }
}

Output:

<?php

class A
{
    public function b()
    {
        $this->c("
                    This multiline string
                    is indented more and more on every save.
                    But only on --php-version >= 7.3
                    and only when a variable is present: $test
                ");
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions