mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
18 lines
348 B
PHP
18 lines
348 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Nelmio\ApiDocBundle\Tests;
|
||
|
|
||
|
use PackageVersions\Versions;
|
||
|
|
||
|
final class Helper
|
||
|
{
|
||
|
public static function isCompoundValidatorConstraintSupported(): bool
|
||
|
{
|
||
|
$validatorVersion = Versions::getVersion('symfony/validator');
|
||
|
|
||
|
return version_compare($validatorVersion, 'v5.1', '>=');
|
||
|
}
|
||
|
}
|