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

Made types used by Symfony compatible with the ones of Hack#10701

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
fabpot merged 2 commits intosymfony:2.3fromfabpot:hack-types
Apr 15, 2014

Conversation

@fabpot
Copy link
Member

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRsymfony/symfony-docs#3802

PHP supports several ways to express types: like Boolean/bool or integer/int. Hack only supports one of them, so this PR proposes to use the Hack type to make Symfony a bit more "compatible" with Hack (gradual upgrade ;)).

Copy link
Member

Choose a reason for hiding this comment

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

extra spaces should be removed

@stof
Copy link
Member

except for the phpdoc issues (there is a few more than the 2 I commented on), this is a 👍

@wouterj
Copy link
Member

oh yeah, this finally makes an end to the Boolean/boolean/bool fight :)#4183

@pborreli
Copy link
Contributor

except for the indentation issues that@stof already mentioned, this is a very big 👍 with even some ❤️ and ✨ (💖)

@rybakit
Copy link
Contributor

👍

@mayeco
Copy link
Contributor

👍 great!

@fabpotfabpot merged commit3c9c10f intosymfony:2.3Apr 15, 2014
fabpot added a commit that referenced this pull requestApr 15, 2014
…ack (fabpot)This PR was merged into the 2.3 branch.Discussion----------Made types used by Symfony compatible with the ones of Hack| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aPHP supports several ways to express types: like Boolean/bool or integer/int. Hack only supports one of them, so this PR proposes to use the Hack type to make Symfony a bit more "compatible" with Hack (gradual upgrade ;)).Commits-------3c9c10f made phpdoc types consistent with those defined in Hack0555b7f made types consistent with those defined in Hack
@Tobion
Copy link
Contributor

What do we do about the spaces problem?

@fabpot
Copy link
MemberAuthor

@Tobion which spaces?

@romainneutron
Copy link
Contributor

@Tobion
Copy link
Contributor

The phpdoc now has more than 1 space between the type and var name. Not quite consistent with our CS rules.

@romainneutron
Copy link
Contributor

Well, the issue@stof mentioned in#10701 (comment) is not solved completely (see my previous comment)

@fabpot
Copy link
MemberAuthor

should be fixed bya693545

@fabpotfabpot deleted the hack-types branchApril 16, 2014 06:53
@pyrech
Copy link
Contributor

It remains extra spaces in phpdoc in lines where the type changed was the longest or the only one
EGa693545#diff-489d053f9f12a6ef215a02c5c8dd0e97R189 ora693545#diff-8b3cd52dcae87bea0e0290537652ab15R58

@Tobion
Copy link
Contributor

I just figured, we should also change the@return as well. Currently we still have@return Boolean|integer

@fabpot
Copy link
MemberAuthor

@Tobion Indeed. Fixed ine96b018 (I've also fixed@var annotations.)

@sstoksstok mentioned this pull requestApr 16, 2014
@pyrech
Copy link
Contributor

Some phpdoc are now wrong in the Config component. Have a look ate96b018#diff-d9f16f6d767e4f1a47f5e325d90aa7cfR26

eg:

  • IntegerNode was changed to IntNode
  • BooleanNodeDefinition was changed to boolNodeDefinition

@pyrech
Copy link
Contributor

@fabpot did you see my previous comments?

@pyrechpyrech mentioned this pull requestApr 20, 2014
fabpot added a commit that referenced this pull requestApr 22, 2014
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes#10750).Discussion----------[Config] fix docblock| Q             | A| ------------- | ---| Fixed tickets | none| License       | MITSome phpdoc are wrong in the Config component after the PR#10701 was merged.eg:    IntegerNode was changed to intNode    BooleanNodeDefinition was changed to boolNodeDefinitionCommits-------68debfb fix docblock
weaverryan added a commit to symfony/symfony-docs that referenced this pull requestMay 8, 2014
This PR was merged into the 2.3 branch.Discussion----------Add a note about which types can be used in Symfony| Q             | A| ------------- | ---| Doc fix?      | no| New docs?     | no| Applies to    | all| Fixed tickets | n/aseesymfony/symfony#10701Commits-------bf9d509 added a note about types we support
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

9 participants

@fabpot@stof@wouterj@pborreli@rybakit@mayeco@Tobion@romainneutron@pyrech

[8]ページ先頭

©2009-2025 Movatter.jp