mesilov / bitrix24-php-sdk

A powerful PHP library for the Bitrix24 REST API
MIT License
408 stars 158 forks source link

error: wrong typehint for Bitrix24 User entity with field ID #382

Closed VladislavBorodin closed 2 months ago

VladislavBorodin commented 5 months ago

public function __get($offset) { switch ($offset) { case 'TIME_ZONE_OFFSET': return (int)$this->data[$offset]; case 'LAST_LOGIN': case 'DATE_REGISTER': case 'UF_EMPLOYMENT_DATE': if ($this->data[$offset] !== '') { return DateTimeImmutable::createFromFormat(DATE_ATOM, $this->data[$offset]); } break; case 'IS_ONLINE': return $this->data[$offset] === 'Y'; }

    return $this->data[$offset] ?? null;
}