You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Docblock of Method getVideosInfo say, the return value is always \StdClass.
First the type call \stdClass (lowercase s) and secondary in the method will be the method \Madcoda\Youtube\Youtube::decodeList called. There it can be return \stdClass OR array.
/**
* Decode the response from youtube, extract the list of resource objects
*
* @param string $apiData response string from youtube
* @throws \Exception
* @return array Array of StdClass objects
*/
The correct Docblock sould be looks like this:
Docblock getVideoInfo()
/**
* Decode the response from youtube, extract the list of resource objects
*
* @param string $apiData response string from youtube
* @throws \Exception
* @return \stdClass|array Array of StdClass objects
*/
The text was updated successfully, but these errors were encountered:
Namespace: \Madcoda\Youtube\Youtube
Method: getVideosInfo()
The Docblock of Method
getVideosInfo
say, the return value is always\StdClass
.First the type call
\stdClass
(lowercase s) and secondary in the method will be the method \Madcoda\Youtube\Youtube::decodeList called. There it can be return\stdClass
ORarray
.Docblock getVideoInfo()
Docblock decodeList()
The correct Docblock sould be looks like this:
Docblock getVideoInfo()
Docblock decodeList()
The text was updated successfully, but these errors were encountered: