Skip to content

Fix. Code. Correct Request::request() return type and var_export() calls - #54

Merged
alexandergull merged 1 commit into
CleanTalk:devfrom
samipuro:fix/request-return-type
Oct 29, 2026
Merged

alexandergull merged 1 commit into
CleanTalk:devfrom
samipuro:fix/request-return-type

Conversation

@samipuro

Copy link
Copy Markdown

Request::request() returns a string on success, but the docblock said array|bool, so static analysers flag the success path in getCleanTalkResponse() as unreachable. Also pass true instead of 1 to var_export() and drop the now-unneeded psalm suppressions.

Docblock and argument changes only, no runtime behaviour change.

@samipuro samipuro changed the title Fix. Code. Correct Request::request() return type and var_export() ca… Fix. Code. Correct Request::request() return type and var_export() calls Oct 24, 2026
@alexandergull
alexandergull changed the base branch from master to dev October 29, 2026 07:26
@alexandergull
alexandergull merged commit d2b3fa6 into CleanTalk:dev Oct 29, 2026
1 check passed
@alexandergull

Copy link
Copy Markdown
Member

Merged in dev branch, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants