8000 [#6582] Some syntax improvements · symfony/symfony-docs@5bdb6d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5bdb6d3

Browse files
committed
[#6582] Some syntax improvements
1 parent 9c2a751 commit 5bdb6d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/yaml/introduction.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ resources and objects) as ``null``.
241241
Instead of encoding as ``null`` you can choose to throw an exception if an invalid
242242
type is encountered in either the dumper or parser as follows::
243243

244-
// throw an exception if a resource or object is encoutered
244+
// throw an exception if a resource or object is encountered
245245
Yaml::dump($data, 2, 4, true);
246246

247247
// throw an exception if an encoded object is found in the YAML string
@@ -259,12 +259,12 @@ However, you can activate object support using the next argument::
259259
var_dump(is_object($parsed)); // true
260260
echo $parsed->foo; // bar
261261

262-
The YAML component uses PHP's ``serialize`` method to generate a string
262+
The YAML component uses PHP's ``serialize()`` method to generate a string
263263
representation of the object.
264264

265-
.. warning::
265+
.. caution::
266266

267-
Object seialization is specific to this implementation, other PHP YAML
267+
Object serialization is specific to this implementation, other PHP YAML
268268
parsers will likely not recognize the ``php/object`` tag and non-PHP
269269
implementations certainly won't - use with discretion!
270270

0 commit comments

Comments
 (0)
0