Fix #869
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
Annotations
10 errors
InvalidExtendClass:
examples/TemplateScanner.php#L17
examples/TemplateScanner.php:17:31: InvalidExtendClass: Class Psalm\Examples\Template\TemplateScanner may not inherit from final class Psalm\Internal\Scanner\FileScanner (see https://psalm.dev/232)
|
MethodSignatureMismatch:
examples/TemplateScanner.php#L21
examples/TemplateScanner.php:21:5: MethodSignatureMismatch: Method Psalm\Internal\Scanner\FileScanner::scan is declared final and cannot be overridden (see https://psalm.dev/042)
|
PropertyTypeCoercion:
src/Psalm/Config.php#L572
src/Psalm/Config.php:572:27: PropertyTypeCoercion: Psalm\Config::$instance expects 'Psalm\Config&static|null', parent type 'Psalm\Config' provided (see https://psalm.dev/198)
|
NonInvariantDocblockPropertyType:
src/Psalm/Internal/Analyzer/NamespaceAnalyzer.php#L46
src/Psalm/Internal/Analyzer/NamespaceAnalyzer.php:46:34: NonInvariantDocblockPropertyType: Property Psalm\Internal\Analyzer\NamespaceAnalyzer::$source has type Psalm\Internal\Analyzer\FileAnalyzer, not invariant with Psalm\Internal\Analyzer\SourceAnalyzer::$source of type Psalm\Internal\Analyzer\SourceAnalyzer (see https://psalm.dev/267)
|
UnusedProperty:
src/Psalm/Internal/LanguageServer/Client/Workspace.php#L23
src/Psalm/Internal/LanguageServer/Client/Workspace.php:23:37: UnusedProperty: Cannot find any references to private property Psalm\Internal\LanguageServer\Client\Workspace::$mapper (see https://psalm.dev/150)
|
PossiblyUnusedProperty:
src/Psalm/Internal/LanguageServer/ClientConfiguration.php#L69
src/Psalm/Internal/LanguageServer/ClientConfiguration.php:69:22: PossiblyUnusedProperty: Cannot find any references to property Psalm\Internal\LanguageServer\ClientConfiguration::$findUnusedVariables (see https://psalm.dev/149)
|
InvalidReturnType:
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php#L579
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php:579:16: InvalidReturnType: The declared return type 'array{0: string, 1: string, ...<int<0, max>, string>}' for Psalm\Internal\PhpVisitor\Reflector\FunctionLikeDocblockParser::sanitizeAssertionLineParts is incorrect, got 'array{0?: string, 1?: string, ...<int<0, max>, string>}' (see https://psalm.dev/011)
|
PossiblyUndefinedIntArrayOffset:
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php#L587
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php:587:64: PossiblyUndefinedIntArrayOffset: Possibly undefined array offset '0' is risky given expected type 'int<0, max>'. Consider using isset beforehand. (see https://psalm.dev/215)
|
PossiblyUndefinedIntArrayOffset:
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php#L589
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php:589:13: PossiblyUndefinedIntArrayOffset: Possibly undefined array offset '1' is risky given expected type 'int<0, max>'. Consider using isset beforehand. (see https://psalm.dev/215)
|
InvalidReturnStatement:
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php#L601
src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php:601:16: InvalidReturnStatement: The inferred type 'array{0?: string, 1?: string, ...<int<0, max>, string>}' does not match the declared return type 'array{0: string, 1: string, ...<int<0, max>, string>}' for Psalm\Internal\PhpVisitor\Reflector\FunctionLikeDocblockParser::sanitizeAssertionLineParts (see https://psalm.dev/128)
|