Skip to content

Instantly share code, notes, and snippets.

@cmounce
cmounce / Foo.php
Created February 5, 2016 01:35
Patchwork, wildcards, and multiple functions
<?php
class Foo {
// This is the function that main.php calls.
public function bar() {
echo "You called the original bar()\n";
}
// The existence of this function causes Patchwork\restoreAll() to crash.
// Comment it out, and restoreAll() works as expected.