Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 26, 2023

if (
$this->isFirstStatement
&& $node instanceof Node\Stmt\InlineHTML
&& str_starts_with($node->value, '#!')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test that tests str_starts_with($node->value, '#!'). So InlineHTML with different contents should still throw an error.

@ondrejmirtes ondrejmirtes merged commit c21c1b4 into phpstan:1.10.x Nov 26, 2023
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm mentioned this pull request Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants