rtio / kdti-server

MIT License
21 stars 6 forks source link

Composer(deps-dev): Bump coduo/php-matcher from 4.0.0 to 5.0.1 #164

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps coduo/php-matcher from 4.0.0 to 5.0.1.

Release notes

Sourced from coduo/php-matcher's releases.

5.0.1

[5.0.1] - 2020-10-09

Changed

Generated by Automation

5.0.0

[5.0.0] - 2020-09-27

Added

Changed

Fixed

Removed

Generated by Automation

4.0.2

[4.0.2] - 2020-10-09

... (truncated)

Changelog

Sourced from coduo/php-matcher's changelog.

[5.0.1] - 2020-10-09

Changed

[5.0.0] - 2020-09-27

Added

Changed

Fixed

Removed

[4.0.2] - 2020-10-09

Changed

[4.0.1] - 2020-09-27

Fixed

... (truncated)

Upgrade guide

Sourced from coduo/php-matcher's upgrade guide.

4.0 -> 5.0

Backtrace

In order to improve performance of matcher Backtrace class was replaced InMemoryBacktrace that implements Backtrace interface.

In order to use backtrace provide it directly to MatcherFactory or PHPMatcher class.

PHPUnit tests require setBacktrace method to be used before test:

$this->setBacktrace($backtrace = new InMemoryBacktrace());
$this->assertMatchesPattern('{"foo": "@integer@"}', json_encode(['foo' => 'bar']));

Optional Matchers

XML and Expression matchers are now optional, in order to use them add following dependencies to your composer.json file:

XMLMatcher

"openlss/lib-array2xml": "^1.0"

ExpressionMatcher

symfony/expression-language

3.x -> 4.0

Below you can find list of changes between 3.x and 4.0 versions of PHPMatcher.

Creating Matcher:

-$factory = new MatcherFactory();
-$matcher = $factory->createMatcher();
+$matcher = new PHPMatcher();

Using Matcher

-PHPMatcher::match($value, $pattern, $error)
+$matcher = (new PHPMatcher())->match($value, $pattern);;

... (truncated)

Commits
  • 2e8ed68 include ArrayMatcher in OrMatcher to fix issues with @null@||@array@ (#213)
  • efd3b2f Update README.md
  • 6d54bc0 Fixed version triggering mutation tests in github workflow
  • d7d13a5 Fixed issue with false positive detection of valid json string (#209)
  • 48f1767 Removed tools from repository
  • f5520d9 Update README.md
  • 33181bc Fixed JSON handling in PHPMatcherConstraint (#208)
  • 5091e41 Mutation tests (#207)
  • 17570c4 Added type coverage badge (#206)
  • 277f7a3 Added psalm to static analyze tools
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.