Commit c042795
committed
fix(attribute): mark ClassConstFetch as lazy to resolve enum attribute args
ClassConstFetch expressions (e.g. Status::Active) in attribute arguments
were not marked as lazy values, so the PHPX bridge stored the backing
string value instead of calling the factory that resolves the enum case.
Add ClassConstFetch to requiresLazyValue() so the lazy marker is set and
the factory function is invoked at runtime via
typephp_attribute_set_lazy_value_argument().1 parent 8ddd04e commit c042795
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
0 commit comments