Skip to content

Instantly share code, notes, and snippets.

@ephrin
Forked from shmaltorhbooks/parent.php
Last active December 17, 2015 07:39
Show Gist options
  • Save ephrin/5574331 to your computer and use it in GitHub Desktop.
Save ephrin/5574331 to your computer and use it in GitHub Desktop.
!__METHOD__ => __FUNCTION__
$reflect = new \ReflectionClass(get_class($this));
return $reflect->getParentClass()->getMethod(__FUNCTION__)->invokeArgs($this, func_get_args());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment