File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ resources and objects) as ``null``.
241241Instead of encoding as ``null `` you can choose to throw an exception if an invalid
242242type 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
263263representation 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
You can’t perform that action at this time.
0 commit comments