You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Str::startsWith(), Str::endsWith() and Str::isAscii()
Add Regex::quoteReplacement()
Changed
Utility
Rename Str methods:
toSnakeCase() -> snake()
toKebabCase() -> kebab()
toCamelCase() -> camel()
toPascalCase() -> pascal()
toWords() -> words()
Allow ref to be suppressed unconditionally in Package methods version() and getPackageVersion()
Change TKey type from array-key to mixed in Arr methods unique(), whereNotNull(), whereNotEmpty(), trim(), lower(), upper(), snakeCase(), toScalars() and toStrings()
Removed
Utility
Remove Str::title()
Remove Test::isAsciiString()
Fixed
Cli
Fix issue where CliApplication::reportVersion() may print the commit reference twice or print empty brackets when there is no reference
PHPDoc
Fix issue where trait aliases are not followed
Work around PHP 7.4 bug where ReflectionMethod does not honour trait aliases
Utility
Fix issue where Str::words() may return unexpected results when $separator contains '\', '$' or a preserved character
Fix Str::expandLeadingTabs() issue where tabs after a falsey value at the start of the first line may not be preserved