1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
This commit is contained in:
Daniil Gentili 2023-11-27 13:41:27 +01:00
parent d59a5493db
commit cd110d549d
2 changed files with 31 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@292ed063233e29d59d0bde61bb6daedee94d55bb">
<files psalm-version="dev-master@24735a0157f1e71d45e4ec3e406d89ee413a114f">
<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>
<PossiblyNullReference>
<code>addAttribute</code>
</PossiblyNullReference>
<PropertyTypeCoercion>
<code>$this</code>
</PropertyTypeCoercion>
@ -625,6 +628,28 @@
<code>hasLowercaseString</code>
</PossiblyUnusedMethod>
</file>
<file src="tests/Config/PluginListTest.php">
<InvalidPropertyAssignmentValue>
<code>Mockery::mock(ConfigFile::class)</code>
</InvalidPropertyAssignmentValue>
<MixedMethodCall>
<code>addPlugin</code>
<code>expects</code>
<code>expects</code>
<code>removePlugin</code>
</MixedMethodCall>
<NoValue>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
<code><![CDATA[$this->config_file]]></code>
</NoValue>
</file>
<file src="tests/TestConfig.php">
<InvalidExtendClass>
<code>Config</code>

View File

@ -1606,10 +1606,12 @@ final class Codebase
if (!in_array($method_storage->visibility, $allow_visibilities)) {
continue;
}
if (array_key_exists($method_storage->cased_name, $had)) {
continue;
if ($method_storage->cased_name !== null) {
if (array_key_exists($method_storage->cased_name, $had)) {
continue;
}
$had[$method_storage->cased_name] = true;
}
$had[$method_storage->cased_name] = true;
if ($method_storage->is_static || $gap === '->') {
$completion_item = new CompletionItem(
$method_storage->cased_name,