Description
In the case that a file was included that does not end with the ?> character, then a fatal error occurs in the resulting template.
Left column: partial file
Right column: generated code

How To Reproduce
- Create partial, like:
<!-- example.dark.php -->
<?php
echo 'Hello, I`m a partial';
- Create template file and include this partial:
<use:element path="xxxxx/example" as="some" />
- Render template file
Additional Info
| Q |
A |
| Framework Version |
2.6 |
| PHP version |
7.2+ |
| Operating system |
Any |