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 issue in APIv3 Where by because product has a colum… #20508

Merged
merged 1 commit into from
Jun 5, 2021

Conversation

seamuslee001
Copy link
Contributor

…n called options the testCreateSingleValueAlter triggers a cannot access offset of type string on string in php8

Overview

This fixes the following error in php8 when running the testCreateSingleValueAlter for the Product entity

TypeError: Cannot access offset of type string on string
/home/seamus/buildkit/build/dmaster/web/sites/all/modules/civicrm/api/v3/Generic.php:514

Before

Type Error generated in php8

After

No Type Error

Technical Details

The product table has a column called options which clashes with the apiv3 options in this test in annoying ways

ping @eileenmcnaughton @demeritcowboy @colemanw

…n called options the testCreateSingleValueAlter triggers a cannot access offset of type string on string in php8
@civibot
Copy link

civibot bot commented Jun 4, 2021

(Standard links)

@civibot civibot bot added the master label Jun 4, 2021
@eileenmcnaughton
Copy link
Contributor

OK - if tests still pass then this is fine

@seamuslee001 seamuslee001 merged commit 432fa39 into civicrm:master Jun 5, 2021
@seamuslee001 seamuslee001 deleted the product_oddness branch June 5, 2021 00:24
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