The issue here was that the if no PHP was gathered from the template then it would not add a php opening tag but still join a line break which looks improper to PHPStan. So now we simply always add the opening tag, not adding it was probably an unnecessary optimization anyway.
With this the project I work on is now able to parse with out any errors on level 0 :tada:
Fixes #42
The issue here was that the if no PHP was gathered from the template then it would not add a php opening tag but still join a line break which looks improper to PHPStan. So now we simply always add the opening tag, not adding it was probably an unnecessary optimization anyway.
With this the project I work on is now able to parse with out any errors on level 0 :tada: