Continued:
- added more type-hints - added some documentation - Contact::getAccountType() should only process string, not null
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user