8000 Adding backslash to stdClass construction because we're using a names… · codezninja/codebird-php@5a7f132 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a7f132

Browse files
robholmesmynetx
authored andcommitted
Adding backslash to stdClass construction because we're using a namespace.
Without this the class is deemed to be within the Codebird namespace (eg. \Codebird\stdClass). This backslash means it has no namespace and should be used for standard php classes (eg. \DateTime, etc.) Signed-off-by: J.M <me@mynetx.net>
1 parent 6198821 commit 5a7f132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codebird.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ protected function _parseApiReply($method, $reply)
870870

871871
$need_array = $this->_return_format == CODEBIRD_RETURNFORMAT_ARRAY;
872872
if ($reply == '[]') {
873-
return $need_array ? array() : new stdClass;
873+
return $need_array ? array() : new \stdClass;
874874
}
875875
$parsed = array();
876876
if ($method == 'users/profile_image/:screen_name') {

0 commit comments

Comments
 (0)
0