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

Avoid calling image* methods on boolean #30040

Merged
merged 3 commits into from
Dec 6, 2021
Merged

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Dec 2, 2021

This avoids fatal errors on PHP>=8, and warnings on older versions.
Log should also be clearer.

Signed-off-by: Côme Chilliet come.chilliet@nextcloud.com

Fixes #29990

@come-nc come-nc self-assigned this Dec 2, 2021
@come-nc
Copy link
Contributor Author

come-nc commented Dec 2, 2021

/backport to stable23

@come-nc
Copy link
Contributor Author

come-nc commented Dec 2, 2021

/backport to stable22

@come-nc
Copy link
Contributor Author

come-nc commented Dec 2, 2021

/backport to stable21

@come-nc come-nc requested review from solracsf, a team, nickvergessen, ArtificialOwl and juliusknorr and removed request for a team December 2, 2021 11:03
@come-nc come-nc added the 3. to review Waiting for reviews label Dec 2, 2021
Copy link
Member

@solracsf solracsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No more errors on my side. 👍

@come-nc come-nc force-pushed the fix/images-php-8.0-2 branch 2 times, most recently from d74f4aa to 1d76114 Compare December 6, 2021 09:26
This avoids fatal errors on PHP>=8, and warnings on older versions.
Log should also be clearer.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

imagedestroy(): Argument #1 ($image) must be of type GdImage, bool given
3 participants