Skip to content

v0.99.72

Choose a tag to compare

@lkrms lkrms released this 27 Jan 06:15
· 256 commits to main since this release
v0.99.72
6ec6bc9

Added

Cli

  • Add overridable CliCommand::canRunAsRoot() method and fail with an exception if it returns false when running as root

Utility

  • Add Package::isInstalled() to public API
  • Add Sys::isRunningAsRoot()

Changed

Utility

  • Rename Json::stringify() to encode()
  • Rename Json::parseObjectAsArray to objectAsArray()
  • Rename Regex::quoteCharacterClass() to quoteCharacters()

Fixed

Cli

  • Fix issue where CliApplication::getVersionString() returns values like app dev-ef08c76d7c0e5563080e1276bccd2ca666ed85d8 (ef08c76d) PHP 8.3.6

Utility

  • Fix Get::copy() issue where private property values are not copied correctly if an extending class has a property with the same name
  • Fix Reflect::getAllProperties() issue where private properties in parent classes are not returned if an inheriting class has a property with the same name
  • Fix issue where Package::getPackagePath() doesn't use File::realpath() to return the canonical path
  • Fix issue where package versions like dev-ef08c76d7c0e...@ef08c76d may be returned

Security

Cli

  • Allow applications to run as root
  • Don't allow commands to run as root by default (see above)