Compliance #7295
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
compliance.yml
on: schedule
Generate job matrix
31s
Matrix: qa
Annotations
18 errors
UnevaluatedCode:
src/Analysis/Token.php#L50
src/Analysis/Token.php:50:9: UnevaluatedCode: Expressions after return/throw/continue (see https://psalm.dev/084)
|
ImpureMethodCall:
src/Analysis/Token.php#L68
src/Analysis/Token.php:68:59: ImpureMethodCall: Cannot call a possibly-mutating method Ghostwriter\Http\Analysis\Token::getTextLength from a mutation-free context (see https://psalm.dev/203)
|
ReferenceConstraintViolation:
src/Analysis/Token.php#L88
src/Analysis/Token.php:88:9: ReferenceConstraintViolation: Variable $mapToKindName is limited to values of type array<int, string>|null because it is passed by reference, array<array-key, string> type found (see https://psalm.dev/086)
|
ImpureMethodCall:
src/Analysis/Token.php#L98
src/Analysis/Token.php:98:58: ImpureMethodCall: Cannot call a possibly-mutating method Ghostwriter\Http\Analysis\Token::getTriviaLength from a mutation-free context (see https://psalm.dev/203)
|
InvalidReturnType:
src/Analysis/Token.php#L128
src/Analysis/Token.php:128:16: InvalidReturnType: The declared return type 'array{kind: int|string, start: int, trivia: int, width: int}' for Ghostwriter\Http\Analysis\Token::jsonSerialize is incorrect, got 'array{kind: string, length: int, offset: int, start: int}' which is different due to additional array shape fields (offset, length) (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Analysis/Token.php#L132
src/Analysis/Token.php:132:16: InvalidReturnStatement: The inferred type 'array{kind: string, length: int, offset: int, start: int}' does not match the declared return type 'array{kind: int|string, start: int, trivia: int, width: int}' for Ghostwriter\Http\Analysis\Token::jsonSerialize due to additional array shape fields (offset, length) (see https://psalm.dev/128)
|
PossiblyUndefinedArrayOffset:
src/Client/Client.php#L219
src/Client/Client.php:219:21: PossiblyUndefinedArrayOffset: Possibly undefined array key (see https://psalm.dev/167)
|
UnusedMethodCall:
tests/Unit/Message/UriTest.php#L1010
tests/Unit/Message/UriTest.php:1010:30: UnusedMethodCall: The call to ReflectionProperty::setAccessible is not used (see https://psalm.dev/209)
|
UnusedMethodCall:
tests/Unit/Message/UriTest.php#L1016
tests/Unit/Message/UriTest.php:1016:14: UnusedMethodCall: The call to ReflectionProperty::setAccessible is not used (see https://psalm.dev/209)
|
UnevaluatedCode:
src/Analysis/Token.php#L50
src/Analysis/Token.php:50:9: UnevaluatedCode: Expressions after return/throw/continue (see https://psalm.dev/084)
|
ImpureMethodCall:
src/Analysis/Token.php#L68
src/Analysis/Token.php:68:59: ImpureMethodCall: Cannot call a possibly-mutating method Ghostwriter\Http\Analysis\Token::getTextLength from a mutation-free context (see https://psalm.dev/203)
|
ReferenceConstraintViolation:
src/Analysis/Token.php#L88
src/Analysis/Token.php:88:9: ReferenceConstraintViolation: Variable $mapToKindName is limited to values of type array<int, string>|null because it is passed by reference, array<array-key, string> type found (see https://psalm.dev/086)
|
ImpureMethodCall:
src/Analysis/Token.php#L98
src/Analysis/Token.php:98:58: ImpureMethodCall: Cannot call a possibly-mutating method Ghostwriter\Http\Analysis\Token::getTriviaLength from a mutation-free context (see https://psalm.dev/203)
|
InvalidReturnType:
src/Analysis/Token.php#L128
src/Analysis/Token.php:128:16: InvalidReturnType: The declared return type 'array{kind: int|string, start: int, trivia: int, width: int}' for Ghostwriter\Http\Analysis\Token::jsonSerialize is incorrect, got 'array{kind: string, length: int, offset: int, start: int}' which is different due to additional array shape fields (offset, length) (see https://psalm.dev/011)
|
InvalidReturnStatement:
src/Analysis/Token.php#L132
src/Analysis/Token.php:132:16: InvalidReturnStatement: The inferred type 'array{kind: string, length: int, offset: int, start: int}' does not match the declared return type 'array{kind: int|string, start: int, trivia: int, width: int}' for Ghostwriter\Http\Analysis\Token::jsonSerialize due to additional array shape fields (offset, length) (see https://psalm.dev/128)
|
PossiblyUndefinedArrayOffset:
src/Client/Client.php#L219
src/Client/Client.php:219:21: PossiblyUndefinedArrayOffset: Possibly undefined array key (see https://psalm.dev/167)
|
UnusedMethodCall:
tests/Unit/Message/UriTest.php#L1010
tests/Unit/Message/UriTest.php:1010:30: UnusedMethodCall: The call to ReflectionProperty::setAccessible is not used (see https://psalm.dev/209)
|
UnusedMethodCall:
tests/Unit/Message/UriTest.php#L1016
tests/Unit/Message/UriTest.php:1016:14: UnusedMethodCall: The call to ReflectionProperty::setAccessible is not used (see https://psalm.dev/209)
|