Skip to content

Commit 140e3c7

Browse files
committed
Fix inspection of type attribute
1 parent 774b2d3 commit 140e3c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CacheKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function getOrderByClauses() : string
6565

6666
return $orders
6767
->reduce(function ($carry, $order) {
68-
if ($order['type'] === 'Raw') {
68+
if (($order['type'] ?? '') === 'Raw') {
6969
return $carry . '_orderByRaw_' . str_slug($order['sql']);
7070
}
7171

0 commit comments

Comments
 (0)