Skip to content

Releases: antecedent/patchwork

Version 2.1.0

27 Aug 09:07
Compare
Choose a tag to compare

Class instantiations are now interceptable:

use function Patchwork\{redefine, always};

redefine('new PDO', always(new class extends PDO
{
    public function query($sql)
    {
        echo $sql, PHP_EOL;
    }
}));

Version 2.0.9

01 Aug 11:56
Compare
Choose a tag to compare

Second attempt to fix #64.

Please note that void-typed functions are still not redefinable.

Version 2.0.8

27 Jul 17:18
Compare
Choose a tag to compare

Quick-fixed #64.

As of now, void-typed functions and methods are not redefinable; support is coming in the next minor version.

Version 2.0.7

11 Jul 07:26
Compare
Choose a tag to compare

Version 2.0.6

23 May 05:46
Compare
Choose a tag to compare

Fixed: echo $var will no longer turn into a parse error when echo is in redefinable-internals.

Version 2.0.5

22 May 17:37
Compare
Choose a tag to compare

Made most so-called language constructs redefinable, namely:

  • echo
  • print
  • eval
  • die and exit
  • include and its variations
  • clone

Version 2.0.4

03 May 19:08
Compare
Choose a tag to compare

Fixed #51, #52, #55 and DIRECTORY_SEPARATOR-related cache issues on Windows.

Version 2.0.3

23 Mar 12:08
Compare
Choose a tag to compare

Fixed #50 (2.0.2 was a failed attempt).

Version 2.0.2

22 Mar 11:27
Compare
Choose a tag to compare

Version 2.0.1

09 Mar 13:40
Compare
Choose a tag to compare

Fixed #48 and #49.