-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Components: The ")" character, this may cause an error #36815
New issue
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
Comments
Can you share all the codes you use exactly because I have not encountered such a problem, you may be making a mistake while using it. @mxgrim |
I think this is a problem caused by a user error. I applied the necessary tests, but I did not encounter the same error. @driesvints |
app/View/Components/Forms/Test.php
resourses/views/components/forms/test.blade.php
resourses/views/index.blade.php
Error: ParseError Compiled file (storage/framework/views/...):
The problem is here: |
The problem is here. I'm sending a pull request. |
I've tracked it down to |
Here's a PR with a failing test: #36843 |
Description:
If you use the ")" character in a declared attribute of a component, this will result in an error:
ParseError
syntax error, unexpected ..
Steps To Reproduce:
Declare an attribute on a component:
public function __construct($title = '')
Run from any .blade.php:
<x-forms.input title="test test )"/>
The text was updated successfully, but these errors were encountered: