TomasVotruba / bladestan

PHPStan analysis for Blade templates
https://tomasvotruba.com/blog/introducing-bladestan-phpstan-analysis-of-blade-templates/
MIT License
280 stars 13 forks source link

Non terminated statements causes parsing error #57

Open AJenbo opened 1 year ago

AJenbo commented 1 year ago

Sample

@php
echo ''
@endphp

Results: Syntax error, unexpected T_ECHO

Workaround:

@php
echo '';
@endphp

Probably the tags are being stripped so instead of:

<?php
echo ''
?>

We end up with

echo ''