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

apply rector level set list rules to bring codebase to php 7.4 #6550

Merged
merged 12 commits into from
Oct 26, 2023

Conversation

DAcodedBEAT
Copy link
Contributor

What's this PR do?

Update language constructs to php 7.4 via rector

Screenshots (if appropriate)

N/A

What Issues does it Close?

N/A

What are the relevant tickets?

N/A

Any background context you want to provide?

As stated earlier, trying to clean up the codebase by updating to newer language constructs.

Where should the reviewer start?

Reviewing by commit is probably the best way to do this, as the changes in a commit will have similar fixes.

How should this be manually tested?

This probably shouldn't be manually tested.

How should the automated tests treat this?

This can be tested as a regular regression test.

Questions:

  • Is there a related website / article to substantiate / explain this change?

  • Does the development wiki need an update?

    • Yes - Link:
    • No
  • Does the user documentation wiki need an update?

    • Yes - Link:
    • No
  • Does this add new dependencies?

    • Yes
    • No
  • Does this need to add new data to the demo database

    • Yes
    • No

@DawoudIO DawoudIO modified the milestones: 5.0.2, 5.0.3 Oct 25, 2023
@DawoudIO DawoudIO self-assigned this Oct 25, 2023
@@ -340,7 +340,7 @@ public function FinishPage($curY, $fam_ID, $fam_Name, $fam_Address1, $fam_Addres
}
}
$pdf->SetFont('Times', '', 10);
$pdf->FinishPage($curY, $prev_fam_ID, $prev_fam_Name, $prev_fam_Address1, $prev_fam_Address2, $prev_fam_City, $prev_fam_State, $prev_fam_Zip, $prev_fam_Country);
$pdf->FinishPage($curY);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change

Copy link
Contributor Author

@DAcodedBEAT DAcodedBEAT Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes were all applied by rector. It looks like it erroneously changed this. I'm struggling to write a reproducer for https://getrector.com/demo so we can file a ticket to their project but in the meantime, I can revert these 2 lines.

EDIT: it looks like you already updated this. Thanks! We can hold off on adding a dry-run of rector to the CI until this is resolved.

@DawoudIO DawoudIO merged commit 649d07c into ChurchCRM:master Oct 26, 2023
@DAcodedBEAT DAcodedBEAT deleted the rector-to-php74 branch October 28, 2023 16:11
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