mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:44:23 +02:00
Continued:
- added more type-hints - added some documentation - Contact::getAccountType() should only process string, not null
This commit is contained in:
parent
45b5f67bca
commit
e484b6d6dc
3 changed files with 36 additions and 36 deletions
|
@ -1527,7 +1527,7 @@ class Contact
|
|||
* @param int $type type of contact or account
|
||||
* @return string
|
||||
*/
|
||||
public static function getAccountType(int $type)
|
||||
public static function getAccountType(int $type): string
|
||||
{
|
||||
switch ($type) {
|
||||
case self::TYPE_ORGANISATION:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue