Skip to content
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

Ensure fromGlobals does not use superglobals when passed empty arrays #155

Merged
merged 3 commits into from
May 3, 2023

Conversation

Xerkus
Copy link
Member

@Xerkus Xerkus commented May 3, 2023

Q A
Documentation no
Bugfix yes
BC Break yes
New Feature no
RFC no
QA no

Description

ServerRequestFactory::fromGlobals() currently falls back to superglobals on null or when empty array is passed as an argument.

This change ensures fallback to superglobals only happens with null.

Xerkus added 2 commits May 4, 2023 03:17
…bal on empty arrays

Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
Signed-off-by: Aleksei Khudiakov <aleksey@xerkus.pro>
@Xerkus Xerkus added the Bug Something isn't working label May 3, 2023
@Xerkus Xerkus added this to the 3.0.0 milestone May 3, 2023
…ehavior

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney
Copy link
Member

@Xerkus I've added some migration documentation for this change, and will merge if/when CI passes (your changes already passed; just need to validate documentation linting now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ServerRequestFactory::fromGlobals() checks if args are truthy rather than set
2 participants