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 stubs for security factories #342

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
ondrejmirtes merged 1 commit into phpstan:1.2.x from yguedidi:security-factory
Apr 5, 2023

Conversation

@yguedidi
Copy link
Contributor

@yguedidi yguedidi commented Mar 23, 2023
edited
Loading

/**
* @param array<string, mixed> $config
*
* @return string|string[]
Copy link
Member

@ondrejmirtes ondrejmirtes Mar 27, 2023

Choose a reason for hiding this comment

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

When does it return a string and when does it return an array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Returning a string is treated the same than returning an array containing a single item by the Symfony code calling this factory. It allows to simplify the most common case which only needs to create a single authenticator.

Copy link
Contributor Author

@yguedidi yguedidi Apr 3, 2023

Choose a reason for hiding this comment

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

@ondrejmirtes is there anything else I can do?

@ondrejmirtes ondrejmirtes merged commit 1da7bf4 into phpstan:1.2.x Apr 5, 2023
Copy link
Member

Thank you!

yguedidi reacted with thumbs up emoji

1 similar comment
Copy link
Member

Thank you!

yguedidi reacted with thumbs up emoji

@yguedidi yguedidi deleted the security-factory branch April 5, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ondrejmirtes ondrejmirtes ondrejmirtes requested changes

+1 more reviewer

@stof stof stof approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /