Describe your bug or feature request.

New phpstan errors started popping: See https://git.drupalcode.org/project/commerce/-/jobs/6900734.

We need to fix those.
This is a really old post update hook... Not sure if there is an equivalent to the hook_update_last_removed() hook for post update functions.

Issue fork commerce-3552398

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jsacksick created an issue. See original summary.

tbkot made their first commit to this issue’s fork.

tbkot’s picture

Status: Active » Needs review

@jsacksick, unfortunately, there are no analogs of hook_update_last_removed for the post_update. I have to just do what the error suggested to do and use "unset()".

  • jsacksick committed aa7ba65e on 3.x authored by tbkot
    [#3552398] fix: Assign to $condition_item overwrites the last element...
jsacksick’s picture

Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.