mirror of
https://github.com/elyby/accounts.git
synced 2026-10-20 12:48:07 +05:30
Fix PHPStan
This commit is contained in:
2 files changed
+6
-10
No files matched your search
@@ -27,6 +27,9 @@ return [
|
||||
),
|
||||
]),
|
||||
common\components\SkinsSystemApi::class => fn(): common\components\SkinsSystemApi => new class('http://chrly.ely.by') extends common\components\SkinsSystemApi {
|
||||
/**
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function textures(string $username): ?array {
|
||||
return [
|
||||
'SKIN' => [
|
||||
@@ -35,6 +38,9 @@ return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function profile(string $username, bool $signed = false, ?string $fallbackUuid = null): ?array {
|
||||
if ($username === 'NotSynchronized') {
|
||||
if ($fallbackUuid === null) {
|
||||
|
||||
@@ -60,16 +60,6 @@ parameters:
|
||||
count: 1
|
||||
path: api/components/User/LegacyOAuth2Identity.php
|
||||
|
||||
-
|
||||
message: "#^Method class@anonymous/api/config/config\\-test\\.php\\:19\\:\\:profile\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: api/config/config-test.php
|
||||
|
||||
-
|
||||
message: "#^Method class@anonymous/api/config/config\\-test\\.php\\:19\\:\\:textures\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
path: api/config/config-test.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$string of function base64_encode expects string, string\\|false given\\.$#"
|
||||
count: 2
|
||||
|
||||
Reference in new issue
Block a user