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

Deprecate pseudo-constructor and add init() method #79

Merged
merged 1 commit into from
Dec 19, 2020

Conversation

stklcode
Copy link
Contributor

The constructor only does static initialization. The instance() method indicates some kind of singleton pattern, but actually only triggers the constructor without returning anything.

Deprecate both in favor of a semantically more precise init() method.

The constructor only does static intiialization. The instance() method
indicates some kind of singleton pattern, but actually only triggers the
constructor without returning anything. Deprecate both in favor of a
semantically more precise init() method.
@codecov-io
Copy link

codecov-io commented Dec 19, 2020

Codecov Report

Merging #79 (1751a38) into develop (de4f3c7) will decrease coverage by 0.10%.
The diff coverage is 20.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop      #79      +/-   ##
=============================================
- Coverage      26.35%   26.25%   -0.11%     
- Complexity       146      147       +1     
=============================================
  Files              5        5              
  Lines            516      518       +2     
=============================================
  Hits             136      136              
- Misses           380      382       +2     
Impacted Files Coverage Δ Complexity Δ
antivirus.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
inc/class-antivirus.php 13.01% <25.00%> (-0.09%) 83.00 <8.00> (+1.00) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de4f3c7...1751a38. Read the comment docs.

@patrickrobrecht patrickrobrecht changed the title depdecate pseudo-constructor and add init() method Deprecate pseudo-constructor and add init() method Dec 19, 2020
@patrickrobrecht patrickrobrecht merged commit 266215d into develop Dec 19, 2020
@patrickrobrecht patrickrobrecht deleted the init-constructor branch December 19, 2020 14:17
@patrickrobrecht patrickrobrecht added this to the 1.4.0 milestone Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants