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

RequestInfo - array to string conversion #11

Closed
dododedodonl opened this issue Oct 15, 2020 · 1 comment
Closed

RequestInfo - array to string conversion #11

dododedodonl opened this issue Oct 15, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dododedodonl
Copy link

dododedodonl commented Oct 15, 2020

When in a test, a request is done using $this->postJson($route, $data), it is possible (and valid) that $data contains a multi dimensional array:

$this->postJson(route('routeName'), [
   'key1' => 'value1',
   'key2' => [
        'key3' => [
            1,
            3,
        ],
    ],
]);

This will result in the following exception when trying to view the generated enlighten data for the test (enlighten/run/1/api/1), triggered by the implode:

Array to string conversion at vendor/styde/enlighten/src/View/Components/RequestInputTableComponent.php:21)
@dododedodonl dododedodonl changed the title Request info - array to string conversion RequestInfo - array to string conversion Oct 15, 2020
@jeffochoa jeffochoa self-assigned this Oct 16, 2020
@jeffochoa jeffochoa added the bug Something isn't working label Oct 16, 2020
@jeffochoa
Copy link
Collaborator

Ready to go on the next release: 6c54aad

@dododedodonl you can use the main branch in the meanwhile.

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

No branches or pull requests

2 participants