Issues (13)

examples/load_modify_save.php (1 issue)

Labels
Severity
1
<?php
2
require_once __DIR__.'/../vendor/autoload.php';
3
4
use Dallgoot\Yaml\Yaml;
5
6
//loading YAML as YamlObject
7
$yamlObject = Yaml::parseFile('./examples/dummy.yml', $options = null, $debug = null);
8
//modifying some part
9
$yamlObject->object->array[3]->integer = '123456789';
0 ignored issues
show
The property object does not exist on Dallgoot\Yaml\Types\YamlObject. Did you mean __yaml__object__api?
Loading history...
10
//dumping the corresponding YAML
11
print_r(Yaml::dump($yamlObject, 0));