Skip to content

Make class Printer fully static #1749

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

Merged
merged 1 commit into from
Aug 13, 2025
Merged

Make class Printer fully static #1749

merged 1 commit into from
Aug 13, 2025

Conversation

spawnia
Copy link
Collaborator

@spawnia spawnia commented Aug 13, 2025

Follow up to #1747.

@ruudk I believe there is no real breaking change here. Yes, users who extended the class may have some breakage, but otherwise not. Due to the protected constructor, it was not possible to obtain an instance of Printer, so public function printAST could not be called from anywhere. The only public API was Printer::doPrint anyways, which remains unchanged, other than a more accurate PhpDoc.

@ruudk
Copy link
Contributor

ruudk commented Aug 13, 2025

Oh wow, I didn't realize that. Thanks for improving it 🎉

@spawnia spawnia merged commit fbb26ce into master Aug 13, 2025
18 checks passed
@spawnia spawnia deleted the static-printer branch August 13, 2025 12:41
@spawnia
Copy link
Collaborator Author

spawnia commented Aug 13, 2025

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