Closed emodric closed 6 years ago
This test script using PHP Matcher 3.0 works fine, so it looks like this is an issue with ATC 3.0 and PHP Matcher 3.0.
<?php
require 'vendor/autoload.php';
use Coduo\PHPMatcher\Factory\SimpleFactory;
$factory = new SimpleFactory();
$matcher = $factory->createMatcher();
$match = $matcher->match('{"key": "2018-03-15T00:00:00Z"}', '{"key": "@string@.isDateTime()"}');
// $match === true
Ping @pamil
Okay, seems like an issue in PHP Matcher 3.0 after all: https://github.com/coduo/php-matcher/issues/124
Best kind of bug ever! Thank Edi anyway for reporting ;)
With ATC 3.0 final, using
coduo/php-matcher
3.0 and@string@.isDateTime()
pattern match results in an error, while everything works as expected with ATC 3.0 and PHP Matcher 2.4.I'm not sure if this is an issue with PHP Matcher lib or ATC not supporting PHP Matcher 3.0 correctly.