Create a `ParameterInfo` with the given name, type hint, and required flag. The parameter is non-variadic and non-reference.
(name: &str, type_hint: Option<&str>, is_required: bool)
| 122 | /// |
| 123 | /// The parameter is non-variadic and non-reference. |
| 124 | pub fn make_param(name: &str, type_hint: Option<&str>, is_required: bool) -> ParameterInfo { |
| 125 | ParameterInfo { |
| 126 | name: crate::atom::atom(name), |
| 127 | is_required, |
| 128 | type_hint: type_hint.map(PhpType::parse), |
| 129 | native_type_hint: type_hint.map(PhpType::parse), |
| 130 | description: None, |
| 131 | default_value: None, |
| 132 | is_variadic: false, |
| 133 | is_reference: false, |
| 134 | closure_this_type: None, |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | /// A class loader that always returns `None`. |
| 139 | /// |