mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Merge pull request #6878 from pilif/fix-uneavluated-inline-html
This commit is contained in:
commit
d72b384a22
@ -343,7 +343,6 @@ class StatementsAnalyzer extends SourceAnalyzer
|
|||||||
&& !$context->collect_initializations
|
&& !$context->collect_initializations
|
||||||
&& !$context->collect_mutations
|
&& !$context->collect_mutations
|
||||||
&& !($stmt instanceof PhpParser\Node\Stmt\Nop)
|
&& !($stmt instanceof PhpParser\Node\Stmt\Nop)
|
||||||
&& !($stmt instanceof PhpParser\Node\Stmt\InlineHTML)
|
|
||||||
&& !($stmt instanceof PhpParser\Node\Stmt\Function_)
|
&& !($stmt instanceof PhpParser\Node\Stmt\Function_)
|
||||||
&& !($stmt instanceof PhpParser\Node\Stmt\Class_)
|
&& !($stmt instanceof PhpParser\Node\Stmt\Class_)
|
||||||
&& !($stmt instanceof PhpParser\Node\Stmt\Interface_)
|
&& !($stmt instanceof PhpParser\Node\Stmt\Interface_)
|
||||||
|
@ -1574,6 +1574,13 @@ class UnusedCodeTest extends TestCase
|
|||||||
',
|
',
|
||||||
'error_message' => 'UnevaluatedCode',
|
'error_message' => 'UnevaluatedCode',
|
||||||
],
|
],
|
||||||
|
'exitInlineHtml' => [
|
||||||
|
'<?php
|
||||||
|
exit(0);
|
||||||
|
?'.'>foo
|
||||||
|
',
|
||||||
|
'error_message' => 'UnevaluatedCode',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user