packagist azjezz/psl 1.3.0
Lavi - 1.3.0

latest releases: dev-next, 3.2.0, dev-chore/update-mago...
4 years ago

Features:

  • added Type\vec functions that returns a Type of vec<T> ( aka list<T>, T[] )
  • added Type\dict function that returns a Type of dict<Tk, Tv> ( aka array<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, use Type\string()->matches($value) instead of Type\is_string($value)

Breaking changes:

  • a new method matches has been added to Type\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 named matches.

Don't miss a new psl release

NewReleases is sending notifications on new releases.