framework
framework copied to clipboard
Wrong inheritance for @aware props
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
- Fire up this otherwise fresh Laravel project
- Visit /
- 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.