1
0
Fork 0

Fix issue parsing php files with unterminated comments found inside backticks, fixes #10385

pull/10402/head
Jordi Boggiano 2021-12-22 21:42:19 +01:00
parent 226689b90c
commit e1bf45aa80
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class PhpFileCleaner
} }
if ($this->peek('*')) { if ($this->peek('*')) {
$this->skipComment(); $this->skipComment();
continue;
} }
} }

View File

@ -4,3 +4,5 @@ namespace Foo\Bar;
class A {} class A {}
class B {} class B {}
$x = `/** unterminated comment`;