Skip to content

v1.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 14 Oct 15:44
· 9 commits to master since this release
f4fa007
  • Fixed. Doubling a type whose method declares a parameter as self no
    longer kills the process with a fatal on PHP 8.3 and 8.4 (#158). The
    generated override wrote the keyword through, and inside the generated class
    self is the generated class — a subclass of the doubled one — so the
    parameter accepted less than the contract and PHP rejected the signature.
    It now renders as the declaring class, the way parent already did. A method
    that comes from a trait was affected on PHP 8.5 too: Reflection leaves a
    trait's self unresolved on every version.
  • Fixed. A relative type keyword spelled in another case — SELF,
    Parent, STATIC — was rendered as a class name with a leading backslash,
    which PHP 8.3 and 8.4 refuse with a fatal: Reflection keeps the spelling, and
    the keyword check compared it case-sensitively.