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

[php8-compat] Fix calling method_exist with paremeter that is bool not an object in… #20443

Merged
merged 1 commit into from
May 29, 2021

Conversation

seamuslee001
Copy link
Contributor

… php8

Overview

This fixes an error found when trying to install dmaster on php8.0 where by calling method_exists with a boolean is not acceptable in php8.0, switching the order of the ifs resolves the error

Before

Installation fails in php8.0

After

Installation works in php8.0

ping @eileenmcnaughton @totten

@civibot
Copy link

civibot bot commented May 29, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor

I'm not sure I 100% get how this helps - but I agree that it won't alter the logic - MOP

@eileenmcnaughton eileenmcnaughton changed the title Fix calling method_exist with paremeter that is bool not an object in… [php8-compat] Fix calling method_exist with paremeter that is bool not an object in… May 29, 2021
@seamuslee001 seamuslee001 merged commit a76a8c5 into civicrm:master May 29, 2021
@seamuslee001 seamuslee001 deleted the fix_error_php8 branch May 29, 2021 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants