[PhpUnitBridge] fix PHP version check

This commit is contained in:
Nicolas Grekas 2021-05-26 19:49:37 +02:00
parent ce7d3c41ae
commit 42e4736e09

View File

@ -25,7 +25,7 @@ if (\PHP_VERSION_ID < 70000 || !$r->getMethod('matches')->hasReturnType()) {
{ {
use Legacy\ConstraintTraitForV7; use Legacy\ConstraintTraitForV7;
} }
} elseif (\PHP_VERSION < 70100 || !$r->getMethod('evaluate')->hasReturnType()) { } elseif (\PHP_VERSION_ID < 70100 || !$r->getMethod('evaluate')->hasReturnType()) {
trait ConstraintTrait trait ConstraintTrait
{ {
use Legacy\ConstraintTraitForV8; use Legacy\ConstraintTraitForV8;