Skip to content

Commit

Permalink
Fix labelCharMap for DEL character
Browse files Browse the repository at this point in the history
This map is supposed to have string keys, not integer keys.
  • Loading branch information
nikic committed May 20, 2023
1 parent a5d4c10 commit 74caed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PhpParser/PrettyPrinterAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ protected function initializeLabelCharMap(): void {
}

if ($this->phpVersion->allowsDelInIdentifiers()) {
$this->labelCharMap[0x7f] = true;
$this->labelCharMap["\x7f"] = true;
}
}

Expand Down

0 comments on commit 74caed6

Please sign in to comment.