1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

ignore irrelevant errors

This commit is contained in:
orklah 2021-11-30 21:01:26 +01:00
parent 812d62d1ce
commit 15bc0fac1f
3 changed files with 26 additions and 9 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@aed069bf8345aa69b5ccdcec7fcf8f961715e729">
<files psalm-version="dev-master@6941ebfc5318e3782e59bfb85876e5edc1f7cca6">
<file src="examples/TemplateChecker.php">
<PossiblyUndefinedIntArrayOffset occurrences="2">
<code>$comment_block-&gt;tags['variablesfrom'][0]</code>
@ -459,6 +459,31 @@
<code>array_keys($template_type_map[$template_param_name])[0]</code>
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Node/Stmt/VirtualClass.php">
<PropertyNotSetInConstructor occurrences="1">
<code>VirtualClass</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Psalm/Node/Stmt/VirtualFunction.php">
<PropertyNotSetInConstructor occurrences="1">
<code>VirtualFunction</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Psalm/Node/Stmt/VirtualInterface.php">
<PropertyNotSetInConstructor occurrences="1">
<code>VirtualInterface</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Psalm/Node/Stmt/VirtualTrait.php">
<PropertyNotSetInConstructor occurrences="1">
<code>VirtualTrait</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Psalm/Node/VirtualConst.php">
<PropertyNotSetInConstructor occurrences="1">
<code>VirtualConst</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Psalm/Storage/Assertion.php">
<PossiblyUndefinedIntArrayOffset occurrences="1">
<code>$rules[0]</code>

View File

@ -2,13 +2,9 @@
namespace Psalm\Node\Stmt;
use PhpParser\Node;
use PhpParser\Node\Stmt\Function_;
use Psalm\Node\VirtualNode;
/**
* @property Node\Name $namespacedName Namespaced name (if using NameResolver)
*/
class VirtualFunction extends Function_ implements VirtualNode
{

View File

@ -3,11 +3,7 @@
namespace Psalm\Node;
use PhpParser\Node\Const_;
use PhpParser\Node\Name;
/**
* @property Name $namespacedName Namespaced name (for global constants, if using NameResolver)
*/
class VirtualConst extends Const_ implements VirtualNode
{