Skip to content

Conversation

@psihius
Copy link
Contributor

@psihius psihius commented Nov 2, 2025

Description

When running in strict types, the sleep($asyncOptions->delaySec); in Client and ClientV2 result in deprication error being raised. I've converted the fields to int (setters already expect int) and set delaySec to 1 because it already was converted to that https://3v4l.org/F9Ir7

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

When running in strict types, the `sleep($asyncOptions->delaySec);` in Client and ClientV2 result in deprication error being raised. 
I've converted the fields to int (setters already expect int) and set delaySec to 1 because it already was converted to that https://3v4l.org/F9Ir7
Updated minimum delay constants to use integer values.
@sebastianMindee
Copy link
Collaborator

Hello, thank you for opening this.

The matter is not with the parameter typing, but rather the way we're handling delays altogether.
We have to keep coherence with other libraries. I opened #153 to tackle it that way instead.

Feel free to add anything there that you see fit.

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