We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
@include('partial')
Partial:
@php use \Exception(); @endphp
Result:
Syntax error, unexpected T_USE
This happens as it's translated to:
<?php function () { use \Exception(); }
Insted all use statements should be hoisted to the top of the generated code:
<?php use \Exception(); function () { }
Workaround: use FQN in partials.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example:
Partial:
@php use \Exception(); @endphp
Result:
This happens as it's translated to:
Insted all use statements should be hoisted to the top of the generated code:
Workaround: use FQN in partials.
The text was updated successfully, but these errors were encountered: