Releases: antecedent/patchwork
Releases · antecedent/patchwork
Version 2.1.0
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
Second attempt to fix #64.
Please note that void
-typed functions are still not redefinable.
Version 2.0.8
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
Fixed #63.
Version 2.0.6
Fixed: echo $var
will no longer turn into a parse error when echo
is in redefinable-internals
.
Version 2.0.5
Made most so-called language constructs redefinable, namely:
echo
print
eval
die
andexit
include
and its variationsclone
Version 2.0.4
Version 2.0.3
Fixed #50 (2.0.2 was a failed attempt).
Version 2.0.2
Fixed #50.