[#3573424] Fixed batch_limit setting logic. Also fixed phpstan error

Closes #3573424

Merge request reports

Loading