Open
Description
Desired Behavior
We would like to not have warnings in our logs about implicit float conversion on PHP >= 8.1.
Actual Behavior
The $num_groups
variable in Automattic\WP\Cron_Control\CLI\Orchestrate_Sites::list()
sometimes results in a float that is later used for the modulo operation at the end of the code block:
Since $num_groups
is not explicitly converted to an integer, our logs get completely clogged with warnings about this code.
Metadata
Metadata
Assignees
Labels
No labels