fix typo in readme

This commit is contained in:
wing328
2016-03-30 20:58:18 +08:00
parent f0c3870386
commit 20f1e97df3
20 changed files with 215 additions and 164 deletions

View File

@@ -257,7 +257,7 @@ class ObjectSerializer
} else {
$deserialized = null;
}
} elseif (in_array($class, array('void', 'bool', 'string', 'double', 'byte', 'mixed', 'integer', 'float', 'int', 'DateTime', 'number', 'boolean', 'object'))) {
} elseif (in_array($class, array('integer', 'int', 'void', 'number', 'object', 'double', 'float', 'byte', 'DateTime', 'string', 'mixed', 'boolean', 'bool'))) {
settype($data, $class);
$deserialized = $data;
} elseif ($class === '\SplFileObject') {