Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2e2914

Browse files
committed
[#6622] Changing line from parse() to dump()
1 parent20b3b37 commitf2e2914

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
@@ -253,7 +253,7 @@ flag::
253253
Similarly you can use ``DUMP_EXCEPTION_ON_INVALID_TYPE`` when dumping::
254254

255255
$data = new \stdClass(); // by default objects are invalid.
256-
Yaml::parse($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
256+
Yaml::dump($data, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE); // throws an exception
257257

258258
echo $yaml; // { foo: bar }
259259

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp