mirror of
https://github.com/elyby/accounts.git
synced 2025-02-23 19:27:34 +05:30
Fix PHPStan errors
This commit is contained in:
parent
997f135d2d
commit
bc59fd91ca
@ -4,16 +4,18 @@ namespace api\tests\functional\mojang;
|
|||||||
use api\tests\FunctionalTester;
|
use api\tests\FunctionalTester;
|
||||||
use Codeception\Example;
|
use Codeception\Example;
|
||||||
|
|
||||||
class UsernameToUuidCest {
|
final class UsernameToUuidCest {
|
||||||
|
|
||||||
public static function endpoints(): array {
|
/**
|
||||||
return [
|
* @return iterable<array{string}>
|
||||||
['/api/mojang/profiles'],
|
*/
|
||||||
['/api/mojang/services/minecraft/profile/lookup/name'],
|
public static function endpoints(): iterable {
|
||||||
];
|
yield ['/api/mojang/profiles'];
|
||||||
|
yield ['/api/mojang/services/minecraft/profile/lookup/name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Example<array{string}> $url
|
||||||
* @dataProvider endpoints
|
* @dataProvider endpoints
|
||||||
*/
|
*/
|
||||||
public function getUuidByUsername(FunctionalTester $I, Example $url): void {
|
public function getUuidByUsername(FunctionalTester $I, Example $url): void {
|
||||||
@ -28,6 +30,7 @@ class UsernameToUuidCest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Example<array{string}> $url
|
||||||
* @dataProvider endpoints
|
* @dataProvider endpoints
|
||||||
*/
|
*/
|
||||||
public function getUuidByUsernameAtMoment(FunctionalTester $I, Example $url): void {
|
public function getUuidByUsernameAtMoment(FunctionalTester $I, Example $url): void {
|
||||||
@ -42,6 +45,7 @@ class UsernameToUuidCest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Example<array{string}> $url
|
||||||
* @dataProvider endpoints
|
* @dataProvider endpoints
|
||||||
*/
|
*/
|
||||||
public function getUuidByUsernameAtWrongMoment(FunctionalTester $I, Example $url): void {
|
public function getUuidByUsernameAtWrongMoment(FunctionalTester $I, Example $url): void {
|
||||||
@ -52,6 +56,7 @@ class UsernameToUuidCest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Example<array{string}> $url
|
||||||
* @dataProvider endpoints
|
* @dataProvider endpoints
|
||||||
*/
|
*/
|
||||||
public function getUuidByUsernameWithoutMoment(FunctionalTester $I, Example $url): void {
|
public function getUuidByUsernameWithoutMoment(FunctionalTester $I, Example $url): void {
|
||||||
@ -62,6 +67,7 @@ class UsernameToUuidCest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Example<array{string}> $url
|
||||||
* @dataProvider endpoints
|
* @dataProvider endpoints
|
||||||
*/
|
*/
|
||||||
public function getUuidByWrongUsername(FunctionalTester $I, Example $url): void {
|
public function getUuidByWrongUsername(FunctionalTester $I, Example $url): void {
|
||||||
@ -72,6 +78,7 @@ class UsernameToUuidCest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Example<array{string}> $url
|
||||||
* @dataProvider endpoints
|
* @dataProvider endpoints
|
||||||
*/
|
*/
|
||||||
public function getUuidForDeletedAccount(FunctionalTester $I, Example $url): void {
|
public function getUuidForDeletedAccount(FunctionalTester $I, Example $url): void {
|
||||||
@ -82,6 +89,7 @@ class UsernameToUuidCest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param Example<array{string}> $url
|
||||||
* @dataProvider endpoints
|
* @dataProvider endpoints
|
||||||
*/
|
*/
|
||||||
public function nonPassedUsername(FunctionalTester $I, Example $url): void {
|
public function nonPassedUsername(FunctionalTester $I, Example $url): void {
|
||||||
|
@ -645,16 +645,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: api/tests/_pages/AuthenticationRoute.php
|
path: api/tests/_pages/AuthenticationRoute.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Method api\\\\tests\\\\_pages\\\\MojangApiRoute\\:\\:usernameToUuid\\(\\) has parameter \\$at with no type specified\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: api/tests/_pages/MojangApiRoute.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Method api\\\\tests\\\\_pages\\\\MojangApiRoute\\:\\:usernameToUuid\\(\\) has parameter \\$username with no type specified\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: api/tests/_pages/MojangApiRoute.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Method api\\\\tests\\\\_pages\\\\MojangApiRoute\\:\\:usernamesByUuid\\(\\) has parameter \\$uuid with no type specified\\.$#"
|
message: "#^Method api\\\\tests\\\\_pages\\\\MojangApiRoute\\:\\:usernamesByUuid\\(\\) has parameter \\$uuid with no type specified\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user