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

Must be compatible #35

Closed
fahmiardi opened this issue Jun 23, 2013 · 3 comments
Closed

Must be compatible #35

fahmiardi opened this issue Jun 23, 2013 · 3 comments

Comments

@fahmiardi
Copy link

I run this library, and I got this error.

PHP Fatal error: Declaration of OAuth2StoragePDO::checkClientCredentials() must be compatible with that of OAuth2\IOAuth2Storage::checkClientCredentials() in /Applications/MAMP/htdocs/oauth2/application/libraries/OAuth2StoragePDO.php on line 17

@Spomky
Copy link

Spomky commented Oct 20, 2013

I think this is not a problem with this library, but with your OAuth2StoragePDO.php
Please verify that checkClientCredentials is similar as the function provided by the interface:

public function checkClientCredentials(IOAuth2Client $client, $client_secret = NULL);

At the beginning of OAuth2StoragePDO.php, you may have forgot to add

use OAuth2\Model\IOAuth2Client;

@alanbem
Copy link
Member

alanbem commented Oct 23, 2013

Yes, our examples are broken at this moment.

@Spomky OAuth2StoragePDO is defined within our repository at ./server/examples/pdo/lib/OAuth2StoragePdo.php.

@alanbem
Copy link
Member

alanbem commented Feb 9, 2014

Duplicate of #17 - closing.

@alanbem alanbem closed this as completed Feb 9, 2014
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

No branches or pull requests

3 participants