Skip to content

Commit 1ba90e0

Browse files
mbardelmeijerMASNathan
authored andcommitted
Cast the URL to string to prevent empty object serialization (#69)
1 parent ca949b9 commit 1ba90e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Capture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function save($imageLocation, $deleteFileIfExists = true)
167167
}
168168

169169
$data = array(
170-
'url' => $this->url,
170+
'url' => (string) $this->url,
171171
'width' => $this->width,
172172
'height' => $this->height,
173173
'imageLocation' => LocalPath::sanitize($this->imageLocation),

0 commit comments

Comments
 (0)