Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if property publicProfileUrl exists in LinkedIn response #328

Merged
merged 1 commit into from Jun 11, 2015

Conversation

leandersikma
Copy link

There is a scenario where the publicProfileUrl is not set, which results in a PHP notice.

@shadowhand
Copy link
Member

👍

@ramsey
Copy link
Contributor

ramsey commented Jun 11, 2015

Thanks. Merging in, but also pinging @stevenmaguire to make sure this isn't in the external LinkedIn library.

ramsey added a commit that referenced this pull request Jun 11, 2015
Check if property `publicProfileUrl` exists in LinkedIn response
@ramsey ramsey merged commit f3d3279 into thephpleague:master Jun 11, 2015
@stevenmaguire
Copy link
Member

This does not appear to be a problem in the external library, which has a different implementation for null/not set.

https://github.com/thephpleague/oauth2-linkedin/blob/master/src/Provider/LinkedIn.php#L80

@leandersikma feel free to pull the project and write a test to validate this against your scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants