Features:
- added
Type\vec
functions that returns a Type ofvec<T>
( akalist<T>
,T[]
) - added
Type\dict
function that returns a Type ofdict<Tk, Tv>
( akaarray<Tk, Tv>
) - added a new
Type\TypeInterface
interface that is implemented by all types. - added
Type::matches($value): bool
method to check if the given value is of that type.
Deprecation:
- all
Type\is_*
functions have been deprecated, useType\string()->matches($value)
instead ofType\is_string($value)
Breaking changes:
- a new method
matches
has been added toType\Type
, if you have a type that extends this base class, you probably won't be effected, unless you have a method in your class namedmatches
.