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

Commit bcbe2d7

Browse files
committed
bugfix
1 parent a387c10 commit bcbe2d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CallTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function __call($func,$args){
3131
$m = new \ReflectionMethod($c, __FUNCTION__);
3232
$dc1 = $m->getDeclaringClass()->name;
3333
$dc2 = (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->name;
34-
if($dc1!=$dc2)
34+
if($dc1!=$dc2||$dc2!=get_class($this))
3535
return parent::__call($func,$args);
3636
}
3737
throw new \BadMethodCallException('Call to undefined method '.get_class($this).'->'.$func);

0 commit comments

Comments
 (0)