Skip to content

Commit 2dfbe0c

Browse files
committed
Fixed imageWith and imageHeight called before image
1 parent b96a286 commit 2dfbe0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Embed/Adapters/Adapter.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ public function getProviderUrl()
283283
*/
284284
public function getImageWidth()
285285
{
286+
if ($this->image && property_exists($this, 'imageWidth')) {
287+
return $this->imageWidth;
288+
}
289+
286290
return null;
287291
}
288292

@@ -292,6 +296,10 @@ public function getImageWidth()
292296
*/
293297
public function getImageHeight()
294298
{
299+
if ($this->image && property_exists($this, 'imageHeight')) {
300+
return $this->imageHeight;
301+
}
302+
295303
return null;
296304
}
297305

0 commit comments

Comments
 (0)