1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

PHP bug 66773 workaround in Hybridauth

In PHP 7.0.12 and earlier, a class could not be loaded with the same
name as another class in a different namespace.  This commit patches the
Hybridauth dependency to avoid PHP bug 66773.  Unfortunately, the fix
will be rolled back any time Hybridauth is updated or overwritten.

PHP bug link: https://bugs.php.net/bug.php?id=66773
This commit is contained in:
Nick Liu 2020-02-17 14:49:57 +01:00
parent 34ff7e464a
commit 539c3f1a67
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637
5 changed files with 10 additions and 10 deletions

View File

@ -7,12 +7,12 @@
namespace Hybridauth\Provider;
use Hybridauth\Adapter\OpenID;
use Hybridauth\Adapter\OpenID as OpenIDAdapter;
/**
* AOL OpenID provider adapter.
*/
class AOLOpenID extends OpenID
class AOLOpenID extends OpenIDAdapter
{
/**
* {@inheritdoc}

View File

@ -7,7 +7,7 @@
namespace Hybridauth\Provider;
use Hybridauth\Adapter;
use Hybridauth\Adapter\OpenID as OpenIDAdapter;
/**
* Generic OpenID providers adapter.
@ -39,6 +39,6 @@ use Hybridauth\Adapter;
* echo $e->getMessage() ;
* }
*/
class OpenID extends Adapter\OpenID
class OpenID extends OpenIDAdapter
{
}

View File

@ -7,13 +7,13 @@
namespace Hybridauth\Provider;
use Hybridauth\Adapter\OpenID;
use Hybridauth\Adapter\OpenID as OpenIDAdapter;
use Hybridauth\HttpClient;
/**
* PayPal OpenID provider adapter.
*/
class PaypalOpenID extends OpenID
class PaypalOpenID extends OpenIDAdapter
{
/**
* {@inheritdoc}

View File

@ -7,12 +7,12 @@
namespace Hybridauth\Provider;
use Hybridauth\Adapter\OpenID;
use Hybridauth\Adapter\OpenID as OpenIDAdapter;
/**
* StackExchange OpenID provider adapter.
*/
class StackExchangeOpenID extends OpenID
class StackExchangeOpenID extends OpenIDAdapter
{
/**
* {@inheritdoc}

View File

@ -7,7 +7,7 @@
namespace Hybridauth\Provider;
use Hybridauth\Adapter\OpenID;
use Hybridauth\Adapter\OpenID as OpenIDAdapter;
use Hybridauth\Exception\UnexpectedApiResponseException;
use Hybridauth\Data;
use Hybridauth\User;
@ -32,7 +32,7 @@ use Hybridauth\User;
* echo $e->getMessage() ;
* }
*/
class Steam extends OpenID
class Steam extends OpenIDAdapter
{
/**
* {@inheritdoc}