You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ php main.php
You called the original bar()
You called the redefined bar()
PHP Fatal error: Call to a member function expire() on null in /home/cmounce/Downloads/patchwork-wildcard/vendor/antecedent/patchwork/src/CallRerouting.php on line 192
The Gist attempts to redefine bar(), then restore it. The redefine works, but the restore crashes.
The text was updated successfully, but these errors were encountered:
If you pass a wildcard
Foo::*
to redefine(), and class Foo has multiple public methods, then restoreAll() will crash.I have a demonstration in this Gist. This is the output on my computer:
The Gist attempts to redefine bar(), then restore it. The redefine works, but the restore crashes.
The text was updated successfully, but these errors were encountered: