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

Fixed Constructor Not Receiving Args as an Array #12

Closed
wants to merge 3 commits into from

Conversation

madurapa
Copy link
Contributor

This PR addresses an issue where the constructor of the AudioWaveform class was not correctly receiving arguments as an array.

@Synchro
Copy link
Owner

Synchro commented Mar 11, 2024

This is a BC break. Why is it needed?

@madurapa
Copy link
Contributor Author

This is a BC break. Why is it needed?

According to the ML's docs, this is how we need to pass and accept parameters otherwise those configurations are not getting updated.

https://spatie.be/docs/laravel-medialibrary/v11/converting-other-file-types/creating-a-custom-image-generator#content-passing-configuration-to-a-custom-image-generator

@Synchro
Copy link
Owner

Synchro commented Mar 12, 2024

Those docs do not show the converter accepting an array; it shows normal function parameters, as it uses already. The array is used to tell ML what the params are, which is quite separate.

@madurapa
Copy link
Contributor Author

I meant this

image

@Synchro
Copy link
Owner

Synchro commented Apr 9, 2024

I merged this manually, made a bunch of other changes and released it as 2.0.0. Thanks for contributing!

@Synchro Synchro closed this Apr 9, 2024
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

Successfully merging this pull request may close these issues.

2 participants