Skip to content

Conversation

greg0ire
Copy link
Member

Since this class no longer use statism, we have state and we can
initialize it in the constructor.

@greg0ire greg0ire force-pushed the init-to-construct branch from 7fbbbdb to 1db8366 Compare March 29, 2020 14:02
@goetas
Copy link
Member

goetas commented Mar 29, 2020

I think you forgot to add the call in the constructor... am I right?

@greg0ire
Copy link
Member Author

greg0ire commented Mar 29, 2020

No, it's just the diff that is confusing. I move the entirety of init() into the constructor. init() no longer is, RIP.

@goetas
Copy link
Member

goetas commented Mar 29, 2020

Then there is a small bug. if ($highlighter === null) { ... return; will skip initialization

@greg0ire
Copy link
Member Author

Oh right! Good thing we have reviews 😅

Since this class no longer uses statism, we have state and we can
initialize it in the constructor.
@greg0ire greg0ire force-pushed the init-to-construct branch from 1db8366 to 65159dd Compare March 29, 2020 14:23
@greg0ire greg0ire merged commit fbe071c into doctrine:master Mar 29, 2020
@greg0ire greg0ire deleted the init-to-construct branch March 29, 2020 14:27
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.

2 participants