Skip to content

setPlaybackPolicy accepted types #88

@vitvavra

Description

@vitvavra

The method MuxPhp\Models\CreateAssetRequest::setPlaybackPolicy probably has an incorrect type of the playback_policy parameter in docblock:

    /** @param \MuxPhp\Models\PlaybackPolicy[]|null $playback_policy */

Should be either

    /** @param string[]|null $playback_policy */

or any other alternative:

    /** @param array<int, \MuxPhp\Models\PlaybackPolicy::*>|null $playback_policy */

I do not know where the sources are generated from, but propably it is not just this single method with the wrong type specified when it does expect enum. This could be fixed either by changing the PlaybackPolicy to enum or updating the type to a working one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions