diff --git a/.gitignore b/.gitignore index 9c9c8f2..9a11097 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ composer.phar composer.lock .DS_Store +.idea diff --git a/src/Provider/LinkedInResourceOwner.php b/src/Provider/LinkedInResourceOwner.php index 010e2a2..8ceba54 100644 --- a/src/Provider/LinkedInResourceOwner.php +++ b/src/Provider/LinkedInResourceOwner.php @@ -129,12 +129,10 @@ public function getSummary() } /** - * Return all of the owner details available as an array. - * - * @return array + * @return string */ - public function toArray() + public function __toString() { - return $this->response; + return is_string($this->getFirstName()) ? $this->getFirstName() : ''; } }