Skip to content

[Request] Auto-complete boolean component properties in boolean style #129

@inxilpro

Description

@inxilpro

If a blade component has a boolean property, you can use a boolean attribute in the XML. For example:

class Toggle extends Component
{
  public function __construct(bool $toggled = false)
  {
    // ...
  }
}
<x-toggle toggled />

Right now PhpStorm will autocomplete the property expecting a value:

<x-toggle toggled="" />

Is it possible to not autocomplete the ="" when the prop is a boolean?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions