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

dev/core#4190 Fix issue where defaultValues needs to be an array not … #25849

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

seamuslee001
Copy link
Contributor

…boolean

Overview

This fixes https://lab.civicrm.org/dev/core/-/issues/4190 by returning an array instead of boolean

Before

Case Delete fails on PHP8

After

Case Delete doesn't fail on PHP8

ping @eileenmcnaughton

@civibot
Copy link

civibot bot commented Mar 16, 2023

No issue was found matching the number given in the pull request title. Please check the issue number.

@civibot
Copy link

civibot bot commented Mar 16, 2023

(Standard links)

@civibot civibot bot added the 5.60 label Mar 16, 2023
@seamuslee001
Copy link
Contributor Author

@eileenmcnaughton I thought about a type hint on the CRM_Core_Form function but then got scared as I thought it might mean I have to update all of them and there seems to be a lot in the CRM_ classes

@eileenmcnaughton
Copy link
Contributor

@seamuslee001 you can add return hints on child classes if they don't exist on the parent - but not vice versa - I have been doing that.

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