Skip to content

v0.99.56

Compare
Choose a tag to compare
@lkrms lkrms released this 15 Oct 05:44
· 270 commits to main since this release
v0.99.56
3d24403

Added

Utility

  • Add File::getIdentifier()
  • Add Get::list()
  • Add Reflect::getPrototype()
  • Add ShouldNotHappenException

Changed

PHPDoc

  • Add optional $includeInterfaces parameter to PHPDocUtil::getAllClassDocComments()

Polyfill

  • In PhpToken::tokenize():
    • Move trailing newlines from comments to whitespace tokens for consistency with native class
    • Replace namespaced names with PHP 8.0 name tokens

Utility

  • In Get::copy():
    • Copy anything, not just objects
    • Allow object copying behaviour to be customised via a callback

Fixed

Polyfill

  • Fix PhpToken::tokenize() issue where tokens in code with multiple end-of-line sequences may have incorrect line numbers

Utility

  • Fix Get::copy() issue where classes that extend internal classes may trigger an exception when COPY_BY_REFERENCE is enabled