Apply generic type substitution to a property's type hint.
(
property: &mut PropertyInfo,
subs: &HashMap<String, PhpType>,
)
| 1232 | |
| 1233 | /// Apply generic type substitution to a property's type hint. |
| 1234 | pub(crate) fn apply_substitution_to_property( |
| 1235 | property: &mut PropertyInfo, |
| 1236 | subs: &HashMap<String, PhpType>, |
| 1237 | ) { |
| 1238 | if let Some(ref mut hint) = property.type_hint { |
| 1239 | *hint = hint.substitute(subs); |
| 1240 | } |
| 1241 | } |
| 1242 | |
| 1243 | /// Apply a substitution map to a type string. |
| 1244 | /// |
no test coverage detected