Skip to content

Components: The ")" character, this may cause an error #36815

Closed
@mxgrim

Description

@mxgrim
  • Laravel Version: 8.34.0
  • PHP Version: 7.4.16
  • Database Driver & Version: -

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 )"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions