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#443 Fix Non-static method calls at CRM_Utils_Mail_Incoming #12934

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

scardinius
Copy link
Contributor

Overview

Strict warnings occurs at PHP7.1

Before

Some methods are declared as non-static but used as static

After

Declare methods with proper access modifier

@civibot
Copy link

civibot bot commented Oct 15, 2018

(Standard links)

@civibot civibot bot added the master label Oct 15, 2018
@mattwire
Copy link
Contributor

@scardinius I agree with all the changes. They are all static functions called by the same class. However what about formatUnrecognisedPart() and &parse()? I'm pretty sure they should be static too (and the function by reference (&parse) should be dropped in favour of parse() as that was a PHP4 construct.

@eileenmcnaughton
Copy link
Contributor

@mattwire raises some good points about some additional changes worth making - but they are non-blocking IMHO as these changes are correct & worth merging. Merging as fails are unrelated

@eileenmcnaughton eileenmcnaughton merged commit f33f327 into civicrm:master Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants