-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Matcher modifiers #132
Conversation
1e689db
to
ac4a957
Compare
Const visibility is probably not a feature we need, I will restore php 7.0 compat later. |
.travis.yml
Outdated
@@ -8,7 +8,7 @@ cache: | |||
|
|||
matrix: | |||
include: | |||
- php: 7.0 | |||
- php: 7.1 |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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
@kejwmen + for this feature, maybe you can revert php version asked by @norzechowicz to merge this PR? |
@vitalyiegorov |
ac4a957
to
cc097b0
Compare
Restored php 7.0 compat, ScalarMatcher supports Could you take a look at my code, maybe we should write some additional integration tests? |
@norzechowicz could you take a look here? |
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. |
Introduces idea described here with two modifiers:
CaseInsensitive
andIgnoreExtraKeys
.#126 is included in this PR, I will rebase after it is merged.