Skip to content

Matcher modifiers #132

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

Closed
wants to merge 3 commits into from
Closed

Conversation

mateuszsip
Copy link
Contributor

Introduces idea described here with two modifiers: CaseInsensitive and IgnoreExtraKeys.

#126 is included in this PR, I will rebase after it is merged.

@mateuszsip mateuszsip force-pushed the feature/modifiers branch 2 times, most recently from 1e689db to ac4a957 Compare May 3, 2018 13:07
@mateuszsip
Copy link
Contributor Author

Const visibility is probably not a feature we need, I will restore php 7.0 compat later.

@mateuszsip mateuszsip changed the title Matcher modifiers [WIP] Matcher modifiers May 3, 2018
.travis.yml Outdated
@@ -8,7 +8,7 @@ cache:

matrix:
include:
- php: 7.0
- php: 7.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert to 7.0

composer.json Outdated
@@ -15,7 +15,7 @@
}
],
"require": {
"php": ">=7.0.0",
"php": ">=7.1.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert to 7.0

@vitalyiegorov
Copy link

@kejwmen + for this feature, maybe you can revert php version asked by @norzechowicz to merge this PR?

@mateuszsip
Copy link
Contributor Author

@vitalyiegorov
sure, I was busy because of GDPR, will try to finish this PR next week.

@mateuszsip mateuszsip changed the title [WIP] Matcher modifiers Matcher modifiers Jun 16, 2018
@mateuszsip
Copy link
Contributor Author

@norzechowicz @vitalyiegorov

Restored php 7.0 compat, ScalarMatcher supports CaseInsensitive modifier.

Could you take a look at my code, maybe we should write some additional integration tests?

@mateuszsip
Copy link
Contributor Author

@norzechowicz could you take a look here?

@JarJak
Copy link
Contributor

JarJak commented Jan 15, 2019

What I don't like with this approach is that if I want to allow extra keys only in specific place inside nested array, I can't do this with modifier, because modifiers work on whole pattern.

@JarJak JarJak mentioned this pull request Jan 16, 2019
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.

4 participants