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

[PropertyInfo] ensure compatibility with type resolver 0.5#33626

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 1 commit intosymfony:3.4fromxabbuh:type-resolver-compat
Sep 18, 2019

Conversation

@xabbuh
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

same as#33588 but for the3.4 branch


if ($nestedVarTypeinstanceof Nullable) {
$varTypes[] = (string)$nestedVarType->getActualType();
$nullable =true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it expected that this could never be false again the loop? Just asking, I am currently on a phone 😊

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

At least that's the current behaviour. The failing example docblock here was?string|int which was expected to revealstring andint as types both being nullable.

Copy link
Member

Choose a reason for hiding this comment

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

the thing is, nullable applies to the whole typehint. Either null is allowed or it is not. But it cannot be both of them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks@stof, that’s what I thought but wanted to be sure 👍🏻

@fabpot
Copy link
Member

Thank you@xabbuh.

fabpot added a commit that referenced this pull requestSep 18, 2019
… (xabbuh)This PR was merged into the 3.4 branch.Discussion----------[PropertyInfo] ensure compatibility with type resolver 0.5| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |same as#33588 but for the `3.4` branchCommits-------2d708b3 ensure compatibility with type resolver 0.5
@fabpotfabpot merged commit2d708b3 intosymfony:3.4Sep 18, 2019
@xabbuhxabbuh deleted the type-resolver-compat branchSeptember 18, 2019 15:30
This was referencedOct 7, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@fabpotfabpotfabpot approved these changes

@stofstofstof approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@fabpot@stof@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp