Commit e5c6456
authored
Previously, the assignment op line was only emitted when one of the other flags
allowed for promoted properties (visibility, set visibility, or readonly) was
also used, or when the property had hooks. The property was still added to the
class, but the magical assignment `$this->prop = $prop` was missing. Add that
assignment even when no visibility is explicitly specified, and a test to
confirm the fix.
1 parent f4b27bd commit e5c6456
3 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7770 | 7770 | | |
7771 | 7771 | | |
7772 | 7772 | | |
| 7773 | + | |
7773 | 7774 | | |
7774 | 7775 | | |
7775 | 7776 | | |
| |||
7781 | 7782 | | |
7782 | 7783 | | |
7783 | 7784 | | |
7784 | | - | |
| 7785 | + | |
7785 | 7786 | | |
7786 | 7787 | | |
7787 | 7788 | | |
| |||
8008 | 8009 | | |
8009 | 8010 | | |
8010 | 8011 | | |
8011 | | - | |
| 8012 | + | |
8012 | 8013 | | |
8013 | 8014 | | |
8014 | 8015 | | |
| |||
0 commit comments