Merge pull request #161 from Lulu13022002/fix/plugins #5
Annotations
19 errors
Run phpstan:
src/MinecraftPing.php#L85
Method xPaw\MinecraftPing::Query() return type has no value type specified in iterable type array.
|
Run phpstan:
src/MinecraftPing.php#L163
Method xPaw\MinecraftPing::QueryOldPre17() return type has no value type specified in iterable type array.
|
Run phpstan:
src/MinecraftPing.php#L225
Parameter #1 $stream of function fgetc expects resource, resource|null given.
|
Run phpstan:
src/MinecraftQuery.php#L19
Property xPaw\MinecraftQuery::$Players type has no value type specified in iterable type array.
|
Run phpstan:
src/MinecraftQuery.php#L20
Property xPaw\MinecraftQuery::$Info type has no value type specified in iterable type array.
|
Run phpstan:
src/MinecraftQuery.php#L93
Method xPaw\MinecraftQuery::GetInfo() return type has no value type specified in iterable type array.
|
Run phpstan:
src/MinecraftQuery.php#L99
Method xPaw\MinecraftQuery::GetPlayers() return type has no value type specified in iterable type array.
|
Run phpstan:
src/MinecraftQuery.php#L181
Parameter #2 $string of function explode expects string, int|string given.
|
Run phpstan
Process completed with exit code 1.
|
Run psalm:
src/MinecraftPing.php#L63
src/MinecraftPing.php:63:13: InvalidPropertyAssignmentValue: $this->Socket with declared type 'null|resource' cannot be assigned type 'closed-resource' (see https://psalm.dev/145)
|
Run psalm:
src/MinecraftPing.php#L139
src/MinecraftPing.php:139:8: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/MinecraftPing.php#L173
src/MinecraftPing.php:173:7: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/MinecraftPing.php#L225
src/MinecraftPing.php:225:18: PossiblyNullArgument: Argument 1 of fgetc cannot be null, possibly null value provided (see https://psalm.dev/078)
|
Run psalm:
src/MinecraftPing.php#L259
src/MinecraftPing.php:259:7: RiskyTruthyFalsyComparison: Operand of type false|list<array<array-key, mixed>> contains type list<array<array-key, mixed>>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/MinecraftQuery.php#L58
src/MinecraftQuery.php:58:18: PossiblyUnusedMethod: Cannot find any calls to method xPaw\MinecraftQuery::ConnectBedrock (see https://psalm.dev/087)
|
Run psalm:
src/MinecraftQuery.php#L120
src/MinecraftQuery.php:120:7: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/MinecraftQuery.php#L234
src/MinecraftQuery.php:234:7: RiskyTruthyFalsyComparison: Operand of type false|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/MinecraftQuery.php#L314
src/MinecraftQuery.php:314:7: RiskyTruthyFalsyComparison: Operand of type false|list<array<array-key, mixed>> contains type list<array<array-key, mixed>>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
view_serverping.php#L114
view_serverping.php:114:46: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
|
Loading