Skip to content

Wrong inheritance for @aware props #57857

@jkoop

Description

@jkoop

Laravel Version

12.39.0

PHP Version

8.4.15

Database Driver & Version

none

Description

When a component includes other components such that there are two variables with the same name at different depths, the component at the bottom that uses @aware is given the wrong value.

Steps To Reproduce

  1. Fire up this otherwise fresh Laravel project
  2. Visit /
  3. Observe that the returned text is "FOO"

The returned text should be "BAR".

This commit, specifically shows the minimal buggy code. The bug is present even if I add @props to charlie.

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