Open HRMsimon opened 9 years ago
This would appear to be intentional, we seem to forgo setting the type field for any non-vanilla-PHP type annotation, which would cause getClass to be null:
auto const nonExtendedConstraint =
fpi.typeConstraint.hasConstraint() &&
!fpi.typeConstraint.isExtended();
auto const type = nonExtendedConstraint ? fpi.typeConstraint.typeName()
: staticEmptyString();
Outputs
null
when it should be returning aReflectionClass
instance ofA
(as it does without the nullability type hint)