Skip to content

Commit

Permalink
Update MediaSingle.php
Browse files Browse the repository at this point in the history
attrs.width is not an int but float
https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/mediaSingle/
"attrs.width number Floating point number between 0 and 100"
  • Loading branch information
yarooze authored Sep 24, 2024
1 parent d14da59 commit ccc94c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Node/Block/MediaSingle.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class MediaSingle extends BlockNode implements JsonSerializable
Media::class,
];
private string $layout;
private ?int $width;
private ?float $width;

public function __construct(string $layout, ?int $width = null, ?BlockNode $parent = null)
public function __construct(string $layout, ?float $width = null, ?BlockNode $parent = null)
{
if (!\in_array($layout, [
self::LAYOUT_WRAP_LEFT,
Expand Down Expand Up @@ -77,7 +77,7 @@ public function getLayout(): string
return $this->layout;
}

public function getWidth(): ?int
public function getWidth(): ?float
{
return $this->width;
}
Expand Down

0 comments on commit ccc94c3

Please sign in to comment.