Skip to content

Media Single Constructor #18

@FeatureCreepKing

Description

@FeatureCreepKing

Issue

When certain comments are parsed using the MediaSingle block, it appears that the type of int is incorrect and should be a float type instead for the width variable.

Looking at the documentation, it states that width is a floating point number here:

https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/mediaSingle/#:~:text=attrs.width,0%20and%20100

Fix

Adjust the following variables to a float value

private ?int $width;

public function __construct(string $layout, ?int $width = null, ?BlockNode $parent = null)

public function getWidth(): ?int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions