1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
This commit is contained in:
Daniil Gentili 2023-10-21 14:20:08 +02:00
parent e3396aa61d
commit e19caf0a16
2 changed files with 33 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@973a3fa554b4a2016e2a551dce2206fb47084050">
<files psalm-version="dev-master@7428e49b115a2a837aa29cf0fafd0ca902fe2457">
<file src="examples/TemplateChecker.php">
<PossiblyUndefinedIntArrayOffset>
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
@ -16,6 +16,9 @@
<PossiblyNullArgument>
<code>$deprecated_element_xml</code>
</PossiblyNullArgument>
<PropertyTypeCoercion>
<code>$this</code>
</PropertyTypeCoercion>
</file>
<file src="src/Psalm/Config/FileFilter.php">
<PossiblyUndefinedIntArrayOffset>
@ -42,6 +45,11 @@
<code>$property_name</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/Analyzer/NamespaceAnalyzer.php">
<NonInvariantDocblockPropertyType>
<code>$source</code>
</NonInvariantDocblockPropertyType>
</file>
<file src="src/Psalm/Internal/Analyzer/ProjectAnalyzer.php">
<PossiblyUndefinedIntArrayOffset>
<code>$destination_parts[1]</code>
@ -302,6 +310,11 @@
<code>$buffer</code>
</PossiblyFalseArgument>
</file>
<file src="src/Psalm/Internal/LanguageServer/ClientConfiguration.php">
<PossiblyUnusedProperty>
<code>$findUnusedVariables</code>
</PossiblyUnusedProperty>
</file>
<file src="src/Psalm/Internal/LanguageServer/LanguageClient.php">
<InvalidArrayAccess>
<code>$config</code>
@ -353,7 +366,15 @@
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Internal/PhpVisitor/Reflector/FunctionLikeDocblockParser.php">
<InvalidReturnStatement>
<code>$line_parts</code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[array{string, string}&array<int<0, max>, string>]]></code>
</InvalidReturnType>
<PossiblyUndefinedIntArrayOffset>
<code>$line_parts[0]</code>
<code>$line_parts[1]</code>
<code>$since_parts[1]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
@ -622,6 +643,16 @@
<code>hasLowercaseString</code>
</PossiblyUnusedMethod>
</file>
<file src="tests/TestConfig.php">
<InvalidExtendClass>
<code>Config</code>
</InvalidExtendClass>
<MethodSignatureMismatch>
<code>public function __construct()</code>
<code>public function getComposerFilePathForClassLike(string $fq_classlike_name): bool</code>
<code>public function getProjectDirectories(): array</code>
</MethodSignatureMismatch>
</file>
<file src="vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php">
<PossiblyUndefinedStringArrayOffset>
<code><![CDATA[$subNodes['expr']]]></code>

View File

@ -56,7 +56,7 @@ final class LanguageClient
$this->handler = new ClientHandler($reader, $writer);
$this->textDocument = new ClientTextDocument($this->handler, $this->server);
$this->workspace = new ClientWorkspace($this->handler, new JsonMapper, $this->server);
$this->workspace = new ClientWorkspace($this->handler, $this->server);
}
/**