mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
2df454c0c3
* Compound validation rule support * Compound validation rule support * Compound validation rule support * Compound validation rule support * Remove duplicated method * error during merge * wrong variable name * Simplify PR * Fix CS * Use same indentation as before Co-authored-by: Guilhem Niot <guilhem@gniot.fr> Co-authored-by: Guilhem Niot <guilhem.niot@gmail.com>
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', '>=');
|
|
}
|
|
}
|