forked from GNUsocial/gnu-social
[CORE] Clarify message when calling non existent method in Entity
This commit is contained in:
parent
45f54e615c
commit
b9fbed2e3d
@ -40,7 +40,7 @@ abstract class Entity
|
|||||||
$private_property_accessor = $private_property_accessor->bindTo($this, get_called_class());
|
$private_property_accessor = $private_property_accessor->bindTo($this, get_called_class());
|
||||||
return $private_property_accessor($prop);
|
return $private_property_accessor($prop);
|
||||||
}
|
}
|
||||||
throw new \Exception("Entity::{$name} called with bogus arguments: " . print_r($arguments, true));
|
throw new \Exception('Non existent method ' . get_called_class() . "::{$name} called with arguments: " . print_r($arguments, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user