Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed May 26, 2016
1 parent a387c10 commit bcbe2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CallTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function __call($func,$args){
$m = new \ReflectionMethod($c, __FUNCTION__);
$dc1 = $m->getDeclaringClass()->name;
$dc2 = (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->name;
if($dc1!=$dc2)
if($dc1!=$dc2||$dc2!=get_class($this))
return parent::__call($func,$args);
}
throw new \BadMethodCallException('Call to undefined method '.get_class($this).'->'.$func);
Expand Down

0 comments on commit bcbe2d7

Please sign in to comment.