Page MenuHomePhabricator

Issue with ArcanistDoubleQuoteXHPASTLinterRule
Open, Needs TriagePublic

Description

ArcanistDoubleQuoteXHPASTLinterRule gets the following code wrong:

<?php

echo "\$x";

The proposed linter fix suggested by ArcanistDoubleQuoteXHPASTLinterRule is:

@@ -1,3 +1,3 @@
 <?php
 
-echo "\$foo";
+echo '\$foo';

This is incorrect and should instead be:

@@ -1,3 +1,3 @@
 <?php
 
-echo "\$foo";
+echo '$foo';

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Lint.
joshuaspence added a subscriber: joshuaspence.