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#1272 - PHP 7.3 warning message on import contribution #15346

Merged
merged 1 commit into from Sep 25, 2019

Conversation

jitendrapurohit
Copy link
Contributor

Overview

Fix warning on import contribution

Before

Get the below warning on Import Contribution screen after selecting the csv and moving on the "Match Fields" page.

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in require_once() (line 227 of /Users/jitendra/src/civicrm/CRM/Core/ClassLoader.php).

After

warning message is not shown.

Technical Details

https://www.php.net/manual/en/migration73.incompatible.php#migration73.incompatible.core.continue-targeting-switch

Comments

Gitlab - https://lab.civicrm.org/dev/core/issues/1272

@civibot
Copy link

civibot bot commented Sep 23, 2019

(Standard links)

@civibot civibot bot added the master label Sep 23, 2019
@demeritcowboy
Copy link
Contributor

demeritcowboy commented Sep 25, 2019

  • General standards
    • [r-explain] PASS
    • [r-user] PASS
    • [r-doc] PASS
    • [r-run] PASS
      • I was able to reproduce the warning (PHP 7.3.9) and the patch fixes it.
  • Developer standards
    • [r-tech] PASS
    • [r-code] PASS
      • The original continue is equivalent to break in this context. I also checked there's nothing after the switch inside the loop that might question the original author's intent (i.e. did they mean to skip something in the outer for loop - I can't see why they would).
    • [r-maint] N/A
    • [r-test] PASS

@seamuslee001 seamuslee001 merged commit 13ff1ab into civicrm:master Sep 25, 2019
@jitendrapurohit jitendrapurohit deleted the dev-1272 branch February 11, 2020 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants