Since $adminId is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $adminId to at least protected.
Loading history...
65
}
66
67
/**
68
* Set the admin chat id
69
*
70
* @param int $adminId
71
*/
72
public static function setAdminId(int $adminId): void
Since $adminId is declared private, accessing it with static will lead to errors in possible sub-classes; you can either use self, or increase the visibility of $adminId to at least protected.