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

Nested array as passed params in given state #690

Closed
judimator opened this issue Oct 30, 2024 · 5 comments · Fixed by #691
Closed

Nested array as passed params in given state #690

judimator opened this issue Oct 30, 2024 · 5 comments · Fixed by #691

Comments

@judimator
Copy link

judimator commented Oct 30, 2024

Hi there,

I am wondering is there a chance to pass nested array as params. Currently it supports only array<string, string> params.

Code to reproduce

$config = new MockServerEnvConfig();
$builder = new InteractionBuilder($config);
$builder
    ->given('User exist', [
        'date' => [
            'id' => 1,
            ...
        ],
        'meta' => [],
    ])
    ...

Version

pact-php:10.0.0

@tienvx
Copy link
Contributor

tienvx commented Nov 1, 2024

Thank @judimator for reporting the issue. This feature will be available in 10.1

@judimator
Copy link
Author

@tienvx Thanks! Would you tell me when you gonna perform that release?

@tienvx
Copy link
Contributor

tienvx commented Nov 1, 2024

I can't say for sure, but it may happen within 2 weeks. Would you like an alpha version to try it out?

@judimator
Copy link
Author

@tienvx Yeah, why not, but I didn't find alpha among all releases...

@tienvx
Copy link
Contributor

tienvx commented Nov 1, 2024

I released a new version. You can try it out using the tag 10.1.0-beta1

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 a pull request may close this issue.

2 participants