Skip to content

Commit a3fba6a

Browse files
committed
minor #7518 [Yaml] fix dump arguments (xabbuh)
This PR was merged into the 3.2 branch. Discussion ---------- [Yaml] fix dump arguments Commits ------- 852c0c0 [Yaml] fix dump arguments
2 parents 1e09697 + 852c0c0 commit a3fba6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/yaml.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ flag::
276276
Similarly you can use ``DUMP_EXCEPTION_ON_INVALID_TYPE`` when dumping::
277277

278278
$data = new \stdClass(); // by default objects are invalid.
279-
Yaml::dump($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
279+
Yaml::dump($data, 2, 4, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
280280

281281
echo $yaml; // { foo: bar }
282282

0 commit comments

Comments
 (0)