Skip to content

@php bug -- Inline/Multiline #21405

@zacksmash

Description

@zacksmash
  • Laravel Version: 5.5.13
  • PHP Version: 7.2
  • Database Driver & Version: MySQL v5.7.19

Description:

Using the @php directive inline followed by a multiline results in the compiled view not rendering properly.

Steps To Reproduce:

@php($var = 1)
<div>
  Stuff In Here
</div>
@php
  $new_var = 2;
@endphp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions