mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Remove unnecessary bug circumvention and generate new baseline
This commit is contained in:
parent
da3a691c36
commit
9902898c4d
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files psalm-version="dev-master@6941ebfc5318e3782e59bfb85876e5edc1f7cca6">
|
||||
<files psalm-version="dev-master@ac230dac5c64b1b4c7f4bd2d067fb7ae6176b6e8">
|
||||
<file src="examples/TemplateChecker.php">
|
||||
<PossiblyUndefinedIntArrayOffset occurrences="2">
|
||||
<code>$comment_block->tags['variablesfrom'][0]</code>
|
||||
@ -255,7 +255,7 @@
|
||||
</file>
|
||||
<file src="src/Psalm/Internal/Analyzer/Statements/ThrowAnalyzer.php">
|
||||
<DeprecatedMethod occurrences="1">
|
||||
<code>\Psalm\Type::getEmpty()</code>
|
||||
<code>Type::getEmpty()</code>
|
||||
</DeprecatedMethod>
|
||||
</file>
|
||||
<file src="src/Psalm/Internal/Analyzer/Statements/UnsetAnalyzer.php">
|
||||
|
@ -84,11 +84,7 @@ class ThrowAnalyzer
|
||||
}
|
||||
|
||||
if ($stmt instanceof PhpParser\Node\Expr\Throw_) {
|
||||
// TODO: Find bug in Psalm:
|
||||
// Conversion to "Type::getEmpty()" triggers Psalm DeprecatedMethod, which is correct
|
||||
// To be investigated: Why isn’t it triggered with "\Psalm\Type::getEmpty()"?!
|
||||
// @phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
$statements_analyzer->node_data->setType($stmt, \Psalm\Type::getEmpty());
|
||||
$statements_analyzer->node_data->setType($stmt, Type::getEmpty());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user