Skip to content

Releases: antecedent/patchwork

Version 2.1.8

19 Feb 18:59
3bb81ac
Compare
Choose a tag to compare

Fixed #79 and #80.

Version 2.1.7

22 Dec 13:09
Compare
Choose a tag to compare

Fixed #75 and #76.

Version 2.1.6

05 Nov 11:06
Compare
Choose a tag to compare

Fixed #73 and #74.

To redefine class instantiations, {"new-keyword-redefinable": true} is now required in patchwork.json.

Version 2.1.5

26 Sep 22:09
Compare
Choose a tag to compare

Version 2.1.4

02 Sep 05:50
Compare
Choose a tag to compare

Version 2.1.3

30 Aug 16:02
Compare
Choose a tag to compare

Version 2.1.2

29 Aug 13:24
Compare
Choose a tag to compare

Fixed another bug that appeared in 2.1.1.

Version 2.1.1

29 Aug 13:07
Compare
Choose a tag to compare

Fixed various bugs that appeared along with version 2.1.0.

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.