Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tracked by #385
VladislavBorodin opened this issue Apr 4, 2024 · 0 comments · Fixed by #391
Closed
Tracked by #385

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

VladislavBorodin opened this issue Apr 4, 2024 · 0 comments · Fixed by #391
Assignees
Labels
2.x issue related with 2.x sdk version bug scope USER application scope user

Comments

@VladislavBorodin
Copy link

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;
}
@mesilov mesilov self-assigned this Apr 5, 2024
@mesilov mesilov added 2.x issue related with 2.x sdk version scope USER application scope user bug labels Apr 5, 2024
@mesilov mesilov changed the title Ошибка в приведении типов в поле B24User в ID error: wrong typehint for Bitrix24 User entity with field ID Apr 18, 2024
@mesilov mesilov linked a pull request Jun 27, 2024 that will close this issue
@mesilov mesilov closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x issue related with 2.x sdk version bug scope USER application scope user
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants