src/Repositories/QuoteBook.php
BeforeProposed
+1−1
1010 $latest = [];
1111 foreach ($rows as $row) {
1212 $quote = Quote::from($row);
13 $key = $quote->id;
13 $key = $quote->supplier . '/' . $quote->id;
1414 $old = $latest[$key] ?? null;
1515 if ($old !== null && $old->revision === $quote->revision && $old != $quote) {
1616 throw new \InvalidArgumentException('conflicting-revision');