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

More return type fixes (bis)#42490

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:5.4fromnicolas-grekas:type-fixes2
Aug 12, 2021

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

* This cache warmer is not optional, without proxies fatal error occurs!
*
* @returnfalse
* @returnbool
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

false is not allowed as a standalone type

Copy link
Member

@wouterjwouterjAug 11, 2021
edited
Loading

Choose a reason for hiding this comment

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

But it is allowed as a PHPdoc type:https://docs.phpdoc.org/3.0/guide/references/phpdoc/types.html

And also recognized by static analysis tools as such. Should we keep@return false and detect this as: bool in the class loader? (feel free to ignore if you think it's not worth the effort)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

false is allowed, but just not as a standalone type: it should always be part of a union

*/
publicfunctiongetFunctions()
{
$functions = [];
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

ExpressionFunctionProviderInterface mandates an array

* Shortcut to create a PostAuthenticationToken for you, if you don't really
* care about which authenticated token you're using.
*
* @return PostAuthenticationToken
Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasAug 11, 2021
edited
Loading

Choose a reason for hiding this comment

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

AbstractAuthenticator cannot force child classes to return an instance ofPostAuthenticationToken.

FormLoginAuthenticator doesn't btw.

wouterj reacted with thumbs up emoji
publicfunctiontestCustomUuidfactory()
{
$uuid =newNilUuid();
$uuid =newUuidV4();
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

/cc@fancyweb FYI, this test was breaking the contracts

fancyweb reacted with eyes emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj left review comments

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp