Skip to content

Instantly share code, notes, and snippets.

@clowestab
Created August 3, 2017 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clowestab/41d32862440fe8726c9e08269d4aecfb to your computer and use it in GitHub Desktop.
Save clowestab/41d32862440fe8726c9e08269d4aecfb to your computer and use it in GitHub Desktop.
<?php
public function __call($method, $arguments) {
$realMethodName = "_" . $method;
if (method_exists($this, $realMethodName)) {
$response = $this->callOldVersion($arguments);
if ($response) {
return $response;
}
return call_user_func_array(array($this, $realMethodName), $arguments);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment