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 TypeError for PHP 7.4 #218

Merged

Conversation

halftrainedharry
Copy link
Contributor

The PR #216 creates a fatal error in PHP 7.4, because the pseudo type mixed was only added in PHP 8.

Fatal error: Uncaught TypeError: Argument 2 passed to phpthumb::__set() must be an instance of mixed, bool given

@smg6511
Copy link

smg6511 commented Oct 28, 2023

@JamesHeinrich - You likely already know this but, If you intend on continuing support for anything < php 8, this simple fix needs to be implemented. Alternatively, explicitly state that php 7.x is no longer supported. Much appreciate action in either direction sooner than later ;-)

@muzzwood
Copy link

Also having the same issue. Would love to see this merged! 🙏🏻

@JamesHeinrich JamesHeinrich merged commit 3d2b3ed into JamesHeinrich:master Oct 28, 2023
@rthrash
Copy link

rthrash commented Dec 7, 2023

Hi @JamesHeinrich sorry to bug you on this one but it'd be epic to get a release out with this fix.

@JamesHeinrich
Copy link
Owner

https://github.com/JamesHeinrich/phpThumb/releases/tag/v1.7.22

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.

5 participants