Confirmed AbstractJob::calculateOptimalBatch can return a non-nonsensical float

Xon

Well-known member
Licensed customer
Affected version
2.3.13
The AbstractJob::calculateOptimalBatch function attempts to compute an optimal batch size of actions/queries for job to stay within the maxRunTime for jobs.

This is type hinted to return an int, but this can return float sometimes. This matters if the caller is using using this value and has declare(strict_types=1) defined in the file. The strict_flags feature prevents silent float => int conversion when calling a function.
 
Back
Top Bottom