Skip to content

Commit ae2469b

Browse files
committed
Fix doc blocks introspection
1 parent 8c827d6 commit ae2469b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Api/Struct.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ protected function _initScalarProperties($apiResponse, array $properties)
3535

3636
if ('string' == $propertyType) {
3737
$value = (string) $value;
38-
} elseif ('integer' == $propertyType) {
38+
} elseif ('int' == $propertyType) {
3939
$value = (int) $value;
40-
} elseif ('boolean' == $propertyType) {
40+
} elseif ('bool' == $propertyType) {
4141
$value = in_array((string) $value, ['true', 'on', 'enabled']);
4242
} else {
4343
throw new \Exception("Unknown property type '$propertyType'.");

0 commit comments

Comments
 (0)