Skip to content

v1.0.8

Choose a tag to compare

@jdwx jdwx released this 12 Jun 20:57
· 42 commits to main since this release
  • Add TypeIs::arrayNullableString().
  • Add TypeIs::arrayStringy().
  • Add TypeIs::mapNullableString().
  • Add TypeIs::mapNullableStringy().
  • Add TypeIs::mapString().
  • Add TypeIs::mapStringy().

The TypeIs::map...() methods are a bit controversial because you cannot assert the type of the key to be a string thanks to PHP's automatic conversion of numeric keys. So they differ from TypeIs::array...() only by the PHPDoc return type.