Skip to content

Commit 494dbe8

Browse files
authored
OrderItem.php: update Image method to return potential nullable Image (#853)
Change return type of Image method to allow null
1 parent b8104b5 commit 494dbe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Variation/OrderItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function SubTitle(): false|string
6666
return false;
6767
}
6868

69-
public function Image(): Image
69+
public function Image(): ?Image
7070
{
7171
if (($variation = $this->ProductVariation()) && $variation->Image()->exists()) {
7272
return $variation->Image();

0 commit comments

Comments
 (0)