framework icon indicating copy to clipboard operation
framework copied to clipboard

Wrong inheritance for @aware props

Open jkoop opened this issue 3 weeks ago • 1 comments

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.

jkoop avatar Nov 21 '25 16:11 jkoop