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

Not able to match @null@||@array@ #212

Closed
maciej-sz opened this issue Oct 8, 2020 · 1 comment · Fixed by #213
Closed

Not able to match @null@||@array@ #212

maciej-sz opened this issue Oct 8, 2020 · 1 comment · Fixed by #213

Comments

@maciej-sz
Copy link

The case is that I am matching optional array, which can be NULL.

A little modified example form php-matcher.norbert.tech (link):

{
  "users": [
    {
      "firstName": "@string@",
      "lastName": "@string@",
      "title": "@string@",
      "created": "@[email protected]()",
      "roles": "@null@||@array@"
    }
  ]
}

and the output contains:

#162 Matcher Coduo\PHPMatcher\Matcher\ScalarMatcher error: "Array(2)" does not match "@array@".

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