Skip to content

phptools deletel code join() #bug #642

@kokwiw

Description

@kokwiw

env

  • ubuntu 20.04
  • vscode 1.88.1
  • php 7.4.3
  • phptools v1.50.15906

why $subjects = join(" ", $subject); become $subjects ?

image

before phptools

   public function getNoticeTitle()
    {
        list(
            'studentGrade' => $studentGrade,
            'subject' => $subject,
            'region' => $region,
            'lessonDuration' => $lessonDuration,
            'feeDeal' => $feeDeal,
            ) = $this->getPublicInfo();
        $subjects = join(" ", $subject);

        return "[{$studentGrade} {$subjects} (HK\${$feeDeal} | {$lessonDuration}) {$region}]";
    }

after phptools

    public function getNoticeTitle()
    {,
        list(
            'studentGrade'   => $studentGrade,
            'subject'        => $subject,
            'region'         => $region,
            'lessonDuration' => $lessonDuration,
            'feeDeal'        => $feeDeal,
        ) = $this->getPublicInfo();
        $subjects                                                                                                                                                                                                            = join(" ", $subject);

        return "[{$studentGrade} {$subjects} (HK\${$feeDeal} | {$lessonDuration}) {$region}]";
    }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions