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

[6.x] Allow passing of strings to dumpSession method #31583

Merged
merged 1 commit into from
Feb 25, 2020
Merged

[6.x] Allow passing of strings to dumpSession method #31583

merged 1 commit into from
Feb 25, 2020

Conversation

aryehraber
Copy link
Contributor

This PR is a minor improvement to the dumpSession method in the TestResponse class, which was recently added via #31131.

While debugging, I usually want to dump a single key from the session but end up getting the full session output because I passed a string to dumpSession instead of an array.

This PR simply casts $keys to an array allowing passing of strings. There are no breaking changes as the previous array-only implementation will continue to work as expected.

Let me know if there's any feedback!

@aryehraber aryehraber changed the title Cast $keys to array allowing passing of strings Allow passing of strings to dumpSession method Feb 24, 2020
@GrahamCampbell GrahamCampbell changed the title Allow passing of strings to dumpSession method [6.x] Allow passing of strings to dumpSession method Feb 24, 2020
@taylorotwell taylorotwell merged commit 335ec9c into laravel:6.x Feb 25, 2020
@aryehraber aryehraber deleted the dump-session-array branch March 3, 2020 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants