Skip to content

v0.99.53

Compare
Choose a tag to compare
@lkrms lkrms released this 20 Sep 05:05
· 325 commits to main since this release
v0.99.53
1b88769

Added

Cli

  • Add CliApplication method getVersionString()

Utility

  • 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