Make function static again

This commit is contained in:
Daniil Gentili 2019-12-28 17:14:59 +01:00
parent 2850c5acfa
commit 3a9dde8c3f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 3 additions and 3 deletions

View File

@ -4495,9 +4495,9 @@ class InternalDoc extends APIFactory
*
* @return int
*/
public function getId($id)
public function getId($id, array $extra = [])
{
return $this->__call(__FUNCTION__, [$id]);
return $this->__call(__FUNCTION__, [$id, $extra]);
}
/**
* Get info about peer, returns an Info object.

View File

@ -319,7 +319,7 @@ trait PeerHandler
*
* @return int
*/
public static function getId($id)
public function getId($id)
{
if (\is_array($id)) {
switch ($id['_']) {