Skip to content

Claude/fix issue 275 #313

Merged
mesilov merged 4 commits intodevfrom
claude/fix-issue-275-01K5f6oAJNNThYdaxwWx51Qp
Dec 4, 2025
Merged

Claude/fix issue 275 #313
mesilov merged 4 commits intodevfrom
claude/fix-issue-275-01K5f6oAJNNThYdaxwWx51Qp

Conversation

@mesilov
Copy link
Copy Markdown
Collaborator

@mesilov mesilov commented Nov 28, 2025

Q A
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #275
License MIT

Added the missing @property-read bool $active annotation to FlowItemResult.php
to match the Bitrix24 API documentation for task.flow.Flow.get method.
This fixes invalid typecasting hints reported in issue #275.
This commit comprehensively fixes all type casting issues in FlowItemResult
by aligning type annotations with the official Bitrix24 API documentation
for task.flow.Flow.get method:

- Added missing @property-read bool $active annotation
- Corrected 9 incorrectly nullable types to match API spec:
  * responsibleList: array|null → array
  * demo: bool|null → bool
  * responsibleCanChangeDeadline: bool|null → bool
  * matchWorkTime: bool|null → bool
  * taskControl: bool|null → bool
  * notifyAtHalfTime: bool|null → bool
  * taskCreators: array|null → array
  * team: array|null → array
  * trialFeatureEnabled: bool|null → bool

Verified against official Bitrix24 API documentation (RU):
https://apidocs.bitrix24.ru/api-reference/tasks/flow/tasks-flow-flow-get.html
@mesilov mesilov changed the base branch from main to dev November 28, 2025 09:30
@mesilov mesilov self-assigned this Dec 4, 2025
@mesilov mesilov added the bug in SDK Something isn't working in SDK label Dec 4, 2025
@mesilov mesilov added this to the 1.9.0 milestone Dec 4, 2025
@mesilov mesilov merged commit ae40513 into dev Dec 4, 2025
24 checks passed
@mesilov mesilov deleted the claude/fix-issue-275-01K5f6oAJNNThYdaxwWx51Qp branch December 13, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug in SDK Something isn't working in SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug in SDK]: invalid typecasting hints

2 participants