Skip to content

Heredoc nowdoc bad indenting  #113

@exu

Description

@exu

I've indented some old symfony1 classes and have found this error

Test Example:

class sendVoucherTask extends crmBaseTask
{
  protected function configure()
  {
    $this->detailedDescription = <<<EOF
The [sendVoucher|INFO] task does things.
Call it with:

  [php symfony sendVoucher|INFO]
EOF;
  }
}

After indent:

class sendVoucherTask extends crmBaseTask
{
    protected function configure()
    {
        $this->detailedDescription = <<<EOF
The [sendVoucher|INFO] task does things.
Call it with:

  [php symfony sendVoucher|INFO]
[*]EOF;
    }
}

[*] - 8 spaces generates php syntax error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions