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

Fix "Trying to access array offset on value of type int" error on php7.4+ #283

Closed
wants to merge 1 commit into from

Conversation

SjorsO
Copy link

@SjorsO SjorsO commented Jan 8, 2021

The "track number" tag of mp3 files is usually an int. Accessing an int with an array offset works in php7.3 and older, but breaks in php7.4: https://3v4l.org/MQ9gK

@JamesHeinrich
Copy link
Owner

It's easier/better to just cast the value to string:
ec1762d

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.

None yet

2 participants