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

add parameter type declarations to private methods#32786

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

Conversation

@xabbuh
Copy link
Member

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

@xabbuhxabbuh added this to thenext milestoneJul 27, 2019
@xabbuhxabbuhforce-pushed theprivate-methods-parameter-type-declarations branch 3 times, most recently from6c01625 to6462261CompareJuly 27, 2019 21:48
@xabbuhxabbuhforce-pushed theprivate-methods-parameter-type-declarations branch 10 times, most recently fromc35772b to2d7d64bCompareJuly 30, 2019 15:39
@xabbuhxabbuh changed the title[WIP] add parameter type declarations to private methodsadd parameter type declarations to private methodsJul 30, 2019
@xabbuhxabbuh marked this pull request as ready for reviewJuly 30, 2019 15:49
@xabbuhxabbuh requested a review fromdunglas as acode ownerJuly 30, 2019 15:49
@xabbuh
Copy link
MemberAuthor

Status: Needs review

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

deps=low line on Travis consistently fails with a timeout, this looks related, isn't it?

@xabbuhxabbuhforce-pushed theprivate-methods-parameter-type-declarations branch 2 times, most recently from99487df to980899eCompareJuly 31, 2019 08:56
@xabbuhxabbuhforce-pushed theprivate-methods-parameter-type-declarations branch 4 times, most recently from84443ec to130c4a2CompareJuly 31, 2019 18:40
@xabbuhxabbuhforce-pushed theprivate-methods-parameter-type-declarations branch from130c4a2 to1b2aaa4CompareJuly 31, 2019 18:51
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

(we investigated that the failure is a pure CI artefact and should be fixed after merge)

@Tobion
Copy link
Contributor

Tobion commentedAug 1, 2019
edited
Loading

I think it's good to do that here. But also I think it's a huge risk to add incompatibilities that are not covered by tests. I would not trust the phpdocs all the time and private functions mostly had no phpdocs at all. So the only way the add types there is by tracing all the entry points individually which I guess was a huge pain and is almost impossible to review.
For changes like this, I wish we had phpstan active. That would give us much more confidence.

@fabpot
Copy link
Member

As this is for 4.4, we will have plenty of people testing this in real life, which is way much better than any static analysis tool.

derrabus reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commit1b2aaa4 intosymfony:4.4Aug 1, 2019
fabpot added a commit that referenced this pull requestAug 1, 2019
This PR was merged into the 4.4 branch.Discussion----------add parameter type declarations to private methods| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Commits-------1b2aaa4 add parameter type declarations to private methods
@xabbuhxabbuh deleted the private-methods-parameter-type-declarations branchAugust 1, 2019 07:55
nicolas-grekas added a commit that referenced this pull requestAug 8, 2019
This PR was merged into the 4.4 branch.Discussion----------remove some more useless phpdocs| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Fix some leftovers from#32974 and#32786Commits-------9be4d17 remove some more useless phpdocs
*
* @param string $sessionId Session ID
* @param string $sessionData Encoded session data
* @param int $maxlifetime session.gc_maxlifetime
Copy link
Contributor

Choose a reason for hiding this comment

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

quite a lot of useful phpdoc descriptions have been removed :/

Copy link
Member

Choose a reason for hiding this comment

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

Which of those would you like to keep?

Copy link
Contributor

Choose a reason for hiding this comment

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

maxlifetime

@nicolas-grekasnicolas-grekas modified the milestones:next,4.4Oct 27, 2019
hultberg pushed a commit to hultberg/symfony that referenced this pull requestSep 17, 2021
…s (xabbuh)This PR was merged into the 4.4 branch.Discussion----------add parameter type declarations to private methods| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Commits-------1b2aaa4 add parameter type declarations to private methods
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@derrabusderrabusderrabus requested changes

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@dunglasdunglasAwaiting requested review from dunglasdunglas is a code owner

+1 more reviewer

@ostroluckyostroluckyostrolucky left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

7 participants

@xabbuh@Tobion@fabpot@nicolas-grekas@ostrolucky@derrabus@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp