Skip to content

Merge pull request #162 from Lulu13022002/fix/encoding #3

Merge pull request #162 from Lulu13022002/fix/encoding

Merge pull request #162 from Lulu13022002/fix/encoding #3

Triggered via push October 17, 2024 18:11
Status Success
Total duration 30s
Artifacts

ci.yml

on: push
Matrix: php
Fit to window
Zoom out
Zoom in

Annotations

76 errors
php (8.3): src/MinecraftPing.php#L85
Method xPaw\MinecraftPing::Query() return type has no value type specified in iterable type array.
php (8.3): src/MinecraftPing.php#L163
Method xPaw\MinecraftPing::QueryOldPre17() return type has no value type specified in iterable type array.
php (8.3): src/MinecraftPing.php#L225
Parameter #1 $stream of function fgetc expects resource, resource|null given.
php (8.3): src/MinecraftQuery.php#L19
Property xPaw\MinecraftQuery::$Players type has no value type specified in iterable type array.
php (8.3): src/MinecraftQuery.php#L20
Property xPaw\MinecraftQuery::$Info type has no value type specified in iterable type array.
php (8.3): src/MinecraftQuery.php#L93
Method xPaw\MinecraftQuery::GetInfo() return type has no value type specified in iterable type array.
php (8.3): src/MinecraftQuery.php#L99
Method xPaw\MinecraftQuery::GetPlayers() return type has no value type specified in iterable type array.
php (8.3): src/MinecraftQuery.php#L181
Parameter #2 $string of function explode expects string, int|string given.
php (8.3)
Process completed with exit code 1.
InvalidPropertyAssignmentValue: 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)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyNullArgument: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyUnusedMethod: src/MinecraftQuery.php#L58
src/MinecraftQuery.php:58:18: PossiblyUnusedMethod: Cannot find any calls to method xPaw\MinecraftQuery::ConnectBedrock (see https://psalm.dev/087)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L230
src/MinecraftQuery.php:230: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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L310
src/MinecraftQuery.php:310: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)
PossiblyInvalidOperand: view_serverping.php#L114
view_serverping.php:114:46: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
InvalidPropertyAssignmentValue: 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)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyNullArgument: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyUnusedMethod: src/MinecraftQuery.php#L58
src/MinecraftQuery.php:58:18: PossiblyUnusedMethod: Cannot find any calls to method xPaw\MinecraftQuery::ConnectBedrock (see https://psalm.dev/087)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L230
src/MinecraftQuery.php:230: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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L310
src/MinecraftQuery.php:310: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)
PossiblyInvalidOperand: view_serverping.php#L114
view_serverping.php:114:46: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
php (8.1): src/MinecraftPing.php#L85
Method xPaw\MinecraftPing::Query() return type has no value type specified in iterable type array.
php (8.1): src/MinecraftPing.php#L163
Method xPaw\MinecraftPing::QueryOldPre17() return type has no value type specified in iterable type array.
php (8.1): src/MinecraftPing.php#L225
Parameter #1 $stream of function fgetc expects resource, resource|null given.
php (8.1): src/MinecraftQuery.php#L19
Property xPaw\MinecraftQuery::$Players type has no value type specified in iterable type array.
php (8.1): src/MinecraftQuery.php#L20
Property xPaw\MinecraftQuery::$Info type has no value type specified in iterable type array.
php (8.1): src/MinecraftQuery.php#L93
Method xPaw\MinecraftQuery::GetInfo() return type has no value type specified in iterable type array.
php (8.1): src/MinecraftQuery.php#L99
Method xPaw\MinecraftQuery::GetPlayers() return type has no value type specified in iterable type array.
php (8.1): src/MinecraftQuery.php#L181
Parameter #2 $string of function explode expects string, int|string given.
php (8.1)
Process completed with exit code 1.
InvalidPropertyAssignmentValue: 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)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyNullArgument: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyUnusedMethod: src/MinecraftQuery.php#L58
src/MinecraftQuery.php:58:18: PossiblyUnusedMethod: Cannot find any calls to method xPaw\MinecraftQuery::ConnectBedrock (see https://psalm.dev/087)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L230
src/MinecraftQuery.php:230: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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L310
src/MinecraftQuery.php:310: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)
PossiblyInvalidOperand: view_serverping.php#L114
view_serverping.php:114:46: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
php (8.2): src/MinecraftPing.php#L85
Method xPaw\MinecraftPing::Query() return type has no value type specified in iterable type array.
php (8.2): src/MinecraftPing.php#L163
Method xPaw\MinecraftPing::QueryOldPre17() return type has no value type specified in iterable type array.
php (8.2): src/MinecraftPing.php#L225
Parameter #1 $stream of function fgetc expects resource, resource|null given.
php (8.2): src/MinecraftQuery.php#L19
Property xPaw\MinecraftQuery::$Players type has no value type specified in iterable type array.
php (8.2): src/MinecraftQuery.php#L20
Property xPaw\MinecraftQuery::$Info type has no value type specified in iterable type array.
php (8.2): src/MinecraftQuery.php#L93
Method xPaw\MinecraftQuery::GetInfo() return type has no value type specified in iterable type array.
php (8.2): src/MinecraftQuery.php#L99
Method xPaw\MinecraftQuery::GetPlayers() return type has no value type specified in iterable type array.
php (8.2): src/MinecraftQuery.php#L181
Parameter #2 $string of function explode expects string, int|string given.
php (8.2)
Process completed with exit code 1.
InvalidPropertyAssignmentValue: 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)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyNullArgument: 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)
RiskyTruthyFalsyComparison: 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)
PossiblyUnusedMethod: src/MinecraftQuery.php#L58
src/MinecraftQuery.php:58:18: PossiblyUnusedMethod: Cannot find any calls to method xPaw\MinecraftQuery::ConnectBedrock (see https://psalm.dev/087)
RiskyTruthyFalsyComparison: 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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L230
src/MinecraftQuery.php:230: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)
RiskyTruthyFalsyComparison: src/MinecraftQuery.php#L310
src/MinecraftQuery.php:310: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)
PossiblyInvalidOperand: view_serverping.php#L114
view_serverping.php:114:46: PossiblyInvalidOperand: Cannot concatenate with a array<array-key, string>|string (see https://psalm.dev/163)
php (8.0): src/MinecraftPing.php#L85
Method xPaw\MinecraftPing::Query() return type has no value type specified in iterable type array.
php (8.0): src/MinecraftPing.php#L163
Method xPaw\MinecraftPing::QueryOldPre17() return type has no value type specified in iterable type array.
php (8.0): src/MinecraftPing.php#L225
Parameter #1 $stream of function fgetc expects resource, resource|null given.
php (8.0): src/MinecraftQuery.php#L19
Property xPaw\MinecraftQuery::$Players type has no value type specified in iterable type array.
php (8.0): src/MinecraftQuery.php#L20
Property xPaw\MinecraftQuery::$Info type has no value type specified in iterable type array.
php (8.0): src/MinecraftQuery.php#L93
Method xPaw\MinecraftQuery::GetInfo() return type has no value type specified in iterable type array.
php (8.0): src/MinecraftQuery.php#L99
Method xPaw\MinecraftQuery::GetPlayers() return type has no value type specified in iterable type array.
php (8.0): src/MinecraftQuery.php#L181
Parameter #2 $string of function explode expects string, int|string given.
php (8.0)
Process completed with exit code 1.