Skip to content

Commit 794aa50

Browse files
committed
Fix: option_value comparison should not be null since it can be an integer as well as a string
1 parent 41e4ea7 commit 794aa50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sylius/Repository/ProductVariantRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ private function areArraysEqual(array $first, array $second): bool
7575
return false;
7676
}
7777
foreach ($second as $key => $value) {
78-
if (!in_array($value, $first, true)) {
78+
if (!in_array($value, $first, false)) {
7979
return false;
8080
}
8181

82-
if (count(array_keys($first, $value, true)) !== count(array_keys($second, $value, true))) {
82+
if (count(array_keys($first, $value, false)) !== count(array_keys($second, $value, false))) {
8383
return false;
8484
}
8585
}

0 commit comments

Comments
 (0)