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

PHP 8.1 - Deprecated: Implicit conversion from float to int #13

Open
PhotonatorAudio opened this issue Jan 5, 2023 · 1 comment
Open
Assignees
Labels

Comments

@PhotonatorAudio
Copy link

Deprecated: Implicit conversion from float 2.5 to int loses precision in ....MpegAudioFrameHeader.php on line 369

@otengkwame
Copy link

otengkwame commented Jan 19, 2023

I had a fix for this, but saw that I can not complicated this so I just did this on line 42. I changed the 2.5 to 3 making it int

/**
* MPEG Audio Version 2.5
*/
const Version_25	= 3;

And it worked for me.

@falahati falahati self-assigned this Jan 22, 2023
@falahati falahati added the bug label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants