Fix issue parsing php files with unterminated comments found inside backticks, fixes #10385
parent
226689b90c
commit
e1bf45aa80
|
@ -120,6 +120,7 @@ class PhpFileCleaner
|
||||||
}
|
}
|
||||||
if ($this->peek('*')) {
|
if ($this->peek('*')) {
|
||||||
$this->skipComment();
|
$this->skipComment();
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,5 @@ namespace Foo\Bar;
|
||||||
|
|
||||||
class A {}
|
class A {}
|
||||||
class B {}
|
class B {}
|
||||||
|
|
||||||
|
$x = `/** unterminated comment`;
|
||||||
|
|
Loading…
Reference in New Issue