Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove useless docblocks#24724

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:2.7fromnicolas-grekas:cleanups27
Nov 5, 2017

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?2.7
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

@nicolas-grekasnicolas-grekas added this to the2.7 milestoneOct 28, 2017
@nicolas-grekasnicolas-grekas changed the title[ProxyManager] Remove useless docblockRemove useless docblocksOct 28, 2017
@nicolas-grekasnicolas-grekasforce-pushed thecleanups27 branch 3 times, most recently from68b6ebf to64437a3CompareOctober 28, 2017 21:32
class DoctrineChoiceLoaderimplements ChoiceLoaderInterface
{
/**
* @var ChoiceListFactoryInterface
Copy link
Contributor

Choose a reason for hiding this comment

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

phpstorm requires those annotations for autocomplete AFAIK

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Phpstorm doesn't need them when the type is inferable from the constructor.

* Create the service definition for the metadata driver.
*
* @param ContainerBuilder $containerpassed on in case an extending class
* @param ContainerBuilder $containerPassed on in case an extending class
Copy link
Member

Choose a reason for hiding this comment

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

such changes should probably be reverted as#24149 added a cs rule against doing sentences in phpdoc (no uppercase, no ending dot)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I don't understand the reasoning given there.
In fact, having an uppercase letter makes the docblock easier to read as the eyes more obviously can spot when a new column starts.
The code base is also using uppercase everywhere else. This is not by chance, but because it is most natural to others.
In short, this is something I did on purpose.

Simperfit and ogizanagi reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

And I fully agree, we just did the contrary when merging it.

@nicolas-grekasnicolas-grekas merged commit2443511 intosymfony:2.7Nov 5, 2017
nicolas-grekas added a commit that referenced this pull requestNov 5, 2017
This PR was merged into the 2.7 branch.Discussion----------Remove useless docblocks| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Commits-------2443511 Remove useless docblocks
@nicolas-grekasnicolas-grekas deleted the cleanups27 branchNovember 5, 2017 15:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@chalasrchalasrchalasr left review comments

+3 more reviewers

@TobionTobionTobion left review comments

@ogizanagiogizanagiogizanagi approved these changes

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@Tobion@ogizanagi@Simperfit@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp