Skip to content

HTTP: Remove redundant doc comments from Response implementations#920

Merged
jtojnar merged 1 commit intomasterfrom
wip/jtojnar/no-duplicate-docs
Jun 27, 2025
Merged

HTTP: Remove redundant doc comments from Response implementations#920
jtojnar merged 1 commit intomasterfrom
wip/jtojnar/no-duplicate-docs

Conversation

@jtojnar
Copy link
Member

@jtojnar jtojnar commented Jun 27, 2025

As per https://stackoverflow.com/a/26554272 and https://docs.phpdoc.org/guide/guides/inheritance.html, phpDocumentor will inherit the doc comments from the interface. Keeping them in implementation is thus mostly pointless noise. The only benefit is that the docs are immediately available even when not using an IDE or LSP but keeping them in sync is too annoying to be worth it.

As per https://stackoverflow.com/a/26554272 and https://docs.phpdoc.org/guide/guides/inheritance.html, phpDocumentor will inherit the doc comments from the interface. Keeping them in implementation is thus mostly pointless noise. The only benefit is that the docs are immediately available even when not using an IDE or LSP but keeping them in sync is too annoying to be worth it.
Copy link
Contributor

@Art4 Art4 left a comment

Choose a reason for hiding this comment

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

Thanks for the clarification. 👍

@jtojnar jtojnar merged commit 5dae281 into master Jun 27, 2025
20 checks passed
@Art4 Art4 added this to the 1.9.0 milestone Jun 27, 2025
@jtojnar jtojnar deleted the wip/jtojnar/no-duplicate-docs branch June 29, 2025 19:02
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.

2 participants