Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore irrelevant errors for php-parser 4.13.2 #7033

Merged
merged 1 commit into from Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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