-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
622 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Cannot access offset 'personal_data' on array\\|bool\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\Loghy\\:\\:getLoghyId\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\Loghy\\:\\:getLoghyId\\(\\) should return array but returns array\\|bool\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\Loghy\\:\\:getUserInfo\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\Loghy\\:\\:requestApi\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\Loghy\\:\\:requestApi\\(\\) should return array\\|null but returns mixed\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\Loghy\\:\\:verifyResponse\\(\\) has parameter \\$response with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\Loghy\\:\\:verifyResponse\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$response of method Loghy\\\\SDK\\\\Loghy\\:\\:verifyResponse\\(\\) expects array, array\\|null given\\.$#" | ||
count: 3 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$response of method Loghy\\\\SDK\\\\Loghy\\:\\:verifyResponse\\(\\) expects array, mixed given\\.$#" | ||
count: 1 | ||
path: src/Loghy.php | ||
|
||
- | ||
message: "#^Class Loghy\\\\SDK\\\\User implements generic interface ArrayAccess but does not specify its types\\: TKey, TValue$#" | ||
count: 1 | ||
path: src/User.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\User\\:\\:getRaw\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/User.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\User\\:\\:map\\(\\) has parameter \\$attributes with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/User.php | ||
|
||
- | ||
message: "#^Method Loghy\\\\SDK\\\\User\\:\\:setRaw\\(\\) has parameter \\$user with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/User.php | ||
|
||
- | ||
message: "#^Property Loghy\\\\SDK\\\\User\\:\\:\\$user type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/User.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: max | ||
paths: | ||
- src | ||
|
||
ignoreErrors: | ||
- '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9\\_]+\(\) return type has no value type specified in iterable type array.#' | ||
- '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9\\_]+\(\) should return array<string, array\|bool\|int\|string>\|null but returns mixed.#' | ||
- '#Method [a-zA-Z0-9\\_]+::[a-zA-Z0-9\\_]+\(\) should return array<string, bool\|int\|string>\|null but returns array<string, array\|bool\|int\|string>\|null.#' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Loghy\SDK\Contract; | ||
|
||
/** | ||
* Interface User | ||
*/ | ||
interface User | ||
{ | ||
/** | ||
* Get the unique identifier for the user issued by social providers. | ||
* | ||
* @return string | ||
*/ | ||
public function getId(): string; | ||
|
||
/** | ||
* Get the type of social provider. | ||
*/ | ||
public function getType(): string; | ||
|
||
/** | ||
* Get the unique identifier for the user issued by Loghy. | ||
* | ||
* @return string | ||
*/ | ||
public function getLoghyId(): string; | ||
|
||
/** | ||
* Get the identifier the user issued by the sites. | ||
* | ||
* @return string | ||
*/ | ||
public function getUserId(): ?string; | ||
|
||
/** | ||
* Get the name of the user. | ||
* | ||
* @return string | ||
*/ | ||
public function getName(): ?string; | ||
|
||
/** | ||
* Get the e-mail address of the user. | ||
* | ||
* @return string | ||
*/ | ||
public function getEmail(): ?string; | ||
} |
Oops, something went wrong.