svn: /phpdoc/en/trunk/appendices/migration70/ new-features.xml
| From: | Maciej Sobaczewski | Date: | Sat, 05 Dec 2015 06:25:37 +0000 |
| Subject: | svn: /phpdoc/en/trunk/appendices/migration70/ new-features.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13874@lists.php.net to get a copy of this message | ||
sobak Sat, 05 Dec 2015 06:25:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=338214
Log:
Fix syntax error in code example
Changed paths:
U phpdoc/en/trunk/appendices/migration70/new-features.xml
Modified: phpdoc/en/trunk/appendices/migration70/new-features.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration70/new-features.xml 2015-12-04 20:56:56 UTC (rev 338213)
+++ phpdoc/en/trunk/appendices/migration70/new-features.xml 2015-12-05 06:25:37 UTC (rev 338214)
@@ -336,7 +336,7 @@
$data = unserialize($foo, ["allowed_classes" => false]);
// converts all objects into __PHP_Incomplete_Class object except those of MyClass and MyClass2
-$data = unserialize($foo, ["allowed_classes" => ["MyClass",
"MyClass2"]);
+$data = unserialize($foo, ["allowed_classes" => ["MyClass",
"MyClass2"]]);
// default behaviour (same as omitting the second argument) that accepts all classes
$data = unserialize($foo, ["allowed_classes" => true]);