Skip to content

Commit 8c0f17f

Browse files
TwitterCards - Width & Height return type
Bag contains string so returned value must be cast to comply with expected int return type
1 parent 3881110 commit 8c0f17f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Providers/TwitterCards.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ public function getImagesUrls()
131131
*/
132132
public function getWidth()
133133
{
134-
return $this->bag->get('player:width');
134+
return (int) $this->bag->get('player:width');
135135
}
136136

137137
/**
138138
* {@inheritdoc}
139139
*/
140140
public function getHeight()
141141
{
142-
return $this->bag->get('player:height');
142+
return (int) $this->bag->get('player:height');
143143
}
144144
}

0 commit comments

Comments
 (0)