Closed simonwelsh closed 4 years ago
IIRC runtime validation is deprecated and slated for removal; the hack typechecker is aware of XHP attributes and provides static validation instead.
It's now disabled by default. Since we dynamically create XHP instances, we've got it enabled in development where it does pick up things because the type checker can't.
completely removing it is definitely in the nearish future, though I'd take a PR for this.
With attribute validation turned on, the Hack array types fail to match
vec
withHH\vec
(and similar fordict
/keyset
)