Skip to content

Fix TypeError for PHP 7.4#218

Merged
JamesHeinrich merged 1 commit intoJamesHeinrich:masterfrom
halftrainedharry:patch-type-mixed
Oct 28, 2023
Merged

Fix TypeError for PHP 7.4#218
JamesHeinrich merged 1 commit intoJamesHeinrich:masterfrom
halftrainedharry:patch-type-mixed

Conversation

@halftrainedharry
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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