StydeNet/enlighten

RequestInfo - array to string conversion

Closed this issue · 1 comments

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)

Ready to go on the next release: 6c54aad

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