Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Generic constraints: small BC break

Compare
Choose a tag to compare
@fredemmott fredemmott released this 17 Feb 03:59
dfa55da

Generics can now have multiple constraints:

class Foo<T super Bar as Baz> {
}

The getConstraintTypeName() and getConstraintRelationship() APIs have been replaced with getConstraints() , returning ImmVector<shape('type' => string, 'relationship' => RelationshipToken)>.

This release also no longer supports HHVM 3.12; HHVM 3.12 itself is also no longer supported by Facebook.