Fix PHPStan

This commit is contained in:
ErickSkrauch committed 2026-10-19 22:35:07 +02:00
1 parent 5b0c4c6917
commit 8542e787bd
2 files changed
+6 -10

No files matched your search

+6
View File
@@ -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) {
-10
View File
@@ -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