[CORE] Throw more meaningfull error when method doesn't exist in Security and Entity

This commit is contained in:
2021-05-12 15:44:09 +00:00
parent 6d93b6fb32
commit 9198797aea
2 changed files with 6 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ abstract class Entity
$private_property_accessor = $private_property_accessor->bindTo($this, get_called_class());
return $private_property_accessor($prop);
}
throw new \Exception('Non existent method ' . get_called_class() . "::{$name} called with arguments: " . print_r($arguments, true));
throw new \BadMethodCallException('Non existent method ' . get_called_class() . "::{$name} called with arguments: " . print_r($arguments, true));
}
/**