Skip to content

Commit

Permalink
ignore irrelevant errors
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Nov 30, 2021
1 parent 812d62d commit 15bc0fa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
27 changes: 26 additions & 1 deletion psalm-baseline.xml
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions src/Psalm/Node/Stmt/VirtualFunction.php
Expand Up @@ -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
{

Expand Down
4 changes: 0 additions & 4 deletions src/Psalm/Node/VirtualConst.php
Expand Up @@ -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
{

Expand Down

0 comments on commit 15bc0fa

Please sign in to comment.