Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

+2 -2
View File
@@ -679,13 +679,13 @@ abstract class Handler extends Model
* May return NULL if server doesn't support this
*
* @param string $identifier The ID Nnumber/string from remote service
* @param string $username The username from remote service
* @param string|null $username The username from remote service
* @return Url|NULL
* @throws Exception The token is invalid and the user needs to reauthenticate
* @throws DomainException General error where it is safe to show a message to the user
* @throws RuntimeException Unexpected error from service
*/
public function userLink( string $identifier, string $username ): ?Url
public function userLink( string $identifier, ?string $username ): ?Url
{
return NULL;
}
+2 -2
View File
@@ -304,13 +304,13 @@ class Twitter extends OAuth1
* May return NULL if server doesn't support this
*
* @param string $identifier The ID Nnumber/string from remote service
* @param string $username The username from remote service
* @param string|null $username The username from remote service
* @return Url|NULL
* @throws LoginException The token is invalid and the user needs to reauthenticate
* @throws DomainException General error where it is safe to show a message to the user
* @throws RuntimeException Unexpected error from service
*/
public function userLink( string $identifier, string $username ): ?Url
public function userLink( string $identifier, ?string $username ): ?Url
{
return Url::external( "https://twitter.com/" )->setPath( $username );
}
+2 -2
View File
@@ -318,13 +318,13 @@ class Google extends OAuth2
* May return NULL if server doesn't support this
*
* @param string $identifier The ID Nnumber/string from remote service
* @param string $username The username from remote service
* @param string|null $username The username from remote service
* @return Url|NULL
* @throws Exception The token is invalid and the user needs to reauthenticate
* @throws DomainException General error where it is safe to show a message to the user
* @throws RuntimeException Unexpected error from service
*/
public function userLink( string $identifier, string $username ): ?Url
public function userLink( string $identifier, ?string $username ): ?Url
{
return NULL;
}
+2 -2
View File
@@ -410,13 +410,13 @@ class Invision extends OAuth2
* May return NULL if server doesn't support this
*
* @param string $identifier The ID Nnumber/string from remote service
* @param string $username The username from remote service
* @param string|null $username The username from remote service
* @return Url|NULL
* @throws LoginException The token is invalid and the user needs to reauthenticate
* @throws DomainException General error where it is safe to show a message to the user
* @throws RuntimeException Unexpected error from service
*/
public function userLink( string $identifier, string $username ): ?Url
public function userLink( string $identifier, ?string $username ): ?Url
{
return Url::external( $this->settings['url'] )->setQueryString( 'showuser', $identifier );
}
+2 -2
View File
@@ -338,14 +338,14 @@ class LinkedIn extends OAuth2
* May return NULL if server doesn't support this
*
* @param string $identifier The ID Number/string from remote service
* @param string $username The username from remote service
* @param string|null $username The username from remote service
* @return Url|NULL
* @throws Exception The token is invalid and the user needs to reauthenticate
* @throws DomainException General error where it is safe to show a message to the user
* @throws RuntimeException Unexpected error from service
* @note You have to apply to LinkedIn's Partnership program manually to get the profile data necessary to generate the public profile URL (specifically, the vanityName field). As such, we can't generate the URL to your profile beginning with the v2 API.
*/
public function userLink( string $identifier, string $username ): ?Url
public function userLink( string $identifier, ?string $username ): ?Url
{
return NULL;
}
@@ -95,8 +95,6 @@ class Standard extends Handler
/* If we didn't match any, throw an exception */
if ( !count( $members ) )
{
$member = NULL;
$member = new Member;
$member->email = $usernameOrEmail;