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… #323

Merged
merged 1 commit into from
May 29, 2021

Conversation

seamuslee001
Copy link
Contributor

… php8

like civicrm/civicrm-core#20443 this just adds a check to make sure that $result is actually a class object

ping @eileenmcnaughton @totten

@civibot
Copy link

civibot bot commented May 29, 2021

(Standard links)

@civibot civibot bot added the master label May 29, 2021
@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
@eileenmcnaughton
Copy link
Contributor

what else would it be? is this a flaw in the upstream code or in our usage/ hacks to this?

@seamuslee001
Copy link
Contributor Author

@eileenmcnaughton it was complaining it was an integer iirc so maybe but it was pretty early on in the process so this resolves it at least

@seamuslee001
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor

Ok - I guess this particular function is already hacked so it might be our hack that is bad. I'm not keen on hacking packages but this just an extra check I guess

@eileenmcnaughton eileenmcnaughton merged commit 2866059 into civicrm:master May 29, 2021
@seamuslee001 seamuslee001 deleted the fix_error_php8 branch May 29, 2021 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants