Releases: nette/utils
Releases · nette/utils
Released version 3.2.6
- FileSystem: messages use normalized paths (#250)
Strings::indexOf()
fixed empty $haystack and negative $nth #271- Strings: improved things around flags
- Callback::unwrap can return non-callable #270
- used @return never
- added
Helpers::clamp()
Validators::isPhpIdentifier()
: Value is always string. (#268)Reflection::expandClassName()
recognizes 'parent'- added
Reflection::isClassKeyword()
,Type::isClassKeyword()
Released version 3.2.5
- support for PHP 8.1
- added Type
- Type, Reflection: supports intersection types
Reflection::getReturnType()
&Type::fromReflection()
return tentative type in PHP 8.1- Reflection::getUseStatements supports enums
- Reflection: added 'never' built-in type
- Reflection:
getReturnTypes()
,getParameterTypes()
,getPropertyTypes()
are deprecated - improved phpDoc, used generics
- added
ArrayList::from()
Released version 3.1.6 (end of life)
- added Type
- improved phpDoc, used generics
- Strings::replace: default replacement is empty string #241
- Reflection:
getReturnTypes()
,getParameterTypes()
,getPropertyTypes()
are deprecated
Released version 3.2.3
Released version 3.2.2
Released version 3.2.1
- added Arrays::
first()
,last()
&contains()
- added Array::
invoke()
&invokeMethod()
- Arrays: some methods accepts iterable
- Strings::
toAscii()
fixed to correctly convert german umlauts (BC break) (#240) - Strings::replace: default replacement is empty string #241
For the details you can have a look at the diff.
Released version 3.2.0
- requires PHP 7.2
- Added Nette\Utils\Floats class for comparing floats (#221)
- Arrays: searchKey() silently renamed to getKeyOffset()
- Callback::closure() triggers deprecation notice
- Image: added detectTypeFromFile() and detectTypeFromString()
- Reflection::toString() appends () after function/method name
- Strings::toAscii - triggers E_USER_NOTICE when ext-intl is not present
- renamed Nette\Localization\ITranslator -> Translator, added class alias
- renamed Nette\Utils\IHtmlString -> Nette\HtmlStringable, added class alias
Released version 3.1.4
- Reflection: added
getReturnTypes()
,getParameterTypes()
andgetPropertyTypes()
- Reflection::
getReturnType()
,getParameterType()
andgetPropertyType()
throws exception on union types - Image::
fromString()
throws UnknownImageFileException when file type is unknown
For the details you can have a look at the diff.