Skip to content

Commit f18a9af

Browse files
committed
MC-33069: Stabilize Unit tests
1 parent 4b21a60 commit f18a9af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/DB/FieldDataConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private function getBatchSize()
128128
{
129129
if (null !== $this->envBatchSize) {
130130
$batchSize = (int) $this->envBatchSize;
131-
if (bccomp($batchSize, PHP_INT_MAX, 0) === 1 || $batchSize < 1) {
131+
if (bccomp($batchSize, PHP_INT_MAX, 0) >= 0 || $batchSize < 1) {
132132
throw new \InvalidArgumentException(
133133
'Invalid value for environment variable ' . self::BATCH_SIZE_VARIABLE_NAME . '. '
134134
. 'Should be integer, >= 1 and < value of PHP_INT_MAX'

0 commit comments

Comments
 (0)