src/File/Yaml.php
public function decode(array $options = [])
    {
        $options = array_merge(
            [
                'exceptionOnInvalidType'        => false,
                'objectSupport'                 => false,
                'objectForMap'                  => false
            ],
            $options
        );

        return SymfonyYaml::parse(
            $this->getContents(),
            $options['exceptionOnInvalidType'],
            $options['objectSupport'],
            $options['objectForMap']
        );
    }
public function decode(array $options = [])
    {
        $options = array_merge(
            [
                'exceptionOnInvalidType'        => false,
                'objectSupport'                 => false,
                'objectForMap'                  => false
            ],
            $options
        );

        return SymfonyYaml::parse(
            $this->getContents(),
            $options['exceptionOnInvalidType'],
            $options['objectSupport'],
            $options['objectForMap']
        );
    }
public function decode ( array $ options = [ ] ) { $ options = array_merge ( [ 'exceptionOnInvalidType' => false , 'objectSupport' => false , 'objectForMap' => false ] , $ options ) ; return SymfonyYaml :: parse ( $ this -> getContents ( ) , $ options [ 'exceptionOnInvalidType' ] , $ options [ 'objectSupport' ] , $ options [ 'objectForMap' ] ) ; }
Decodes Yaml data.

@param array $options - Options.

@throws DecodeException

@return array
Decodes Yaml data .