src/Linter/Yaml/YamlLinter.php
public static function supportsFlags(): bool
    {
        $rc = new ReflectionClass(Yaml::class);
        $method = $rc->getMethod('parse');
        $params = $method->getParameters();

        return 'flags' === $params[1]->getName();
    }
public static function supportsFlags(): bool
    {
        $rc = new ReflectionClass(Yaml::class);
        $method = $rc->getMethod('parse');
        $params = $method->getParameters();

        return 'flags' === $params[1]->getName();
    }
public static function supportsFlags ( ) : bool { $ rc = new ReflectionClass ( Yaml :: class ) ; $ method = $ rc -> getMethod ( 'parse' ) ; $ params = $ method -> getParameters ( ) ; return 'flags' === $ params [ 1 ] -> getName ( ) ; }
This method can be used to determine the Symfony Linter version.
If this method returns true, you are using Symfony YAML > 3.1.

@see http://symfony.com/blog/new-in-symfony-3-1-customizable-yaml-parsing-and-dumping
This method can be used to determine the Symfony Linter version . If this method returns true you are using Symfony YAML > 3 . 1 .