Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setPlaybackPolicy accepted types #88

Open
vitvavra opened this issue May 6, 2024 · 0 comments
Open

setPlaybackPolicy accepted types #88

vitvavra opened this issue May 6, 2024 · 0 comments

Comments

@vitvavra
Copy link

vitvavra commented May 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant