From ccc94c38cdec950d30eeb58c641d54c5904110bf Mon Sep 17 00:00:00 2001 From: yarooze Date: Tue, 24 Sep 2024 12:17:05 +0200 Subject: [PATCH] Update MediaSingle.php 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" --- src/Node/Block/MediaSingle.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Node/Block/MediaSingle.php b/src/Node/Block/MediaSingle.php index d14802e..1e878c9 100644 --- a/src/Node/Block/MediaSingle.php +++ b/src/Node/Block/MediaSingle.php @@ -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, @@ -77,7 +77,7 @@ public function getLayout(): string return $this->layout; } - public function getWidth(): ?int + public function getWidth(): ?float { return $this->width; }