Skip to content

Commit

Permalink
Add a Psalm baseline file
Browse files Browse the repository at this point in the history
This suppresses a bunch of errors en-masse. They are very difficult to satisfy.

See also vimeo/psalm#10922
  • Loading branch information
XedinUnknown committed Apr 26, 2024
1 parent f1f33ab commit 6b0fb67
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions psalm-baseline.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.x-dev@7d6c88e88a55cf04af4d6932cfb906d15ac2fe23">
<file src="src/CompositeCachingServiceProvider.php">
<InvalidReturnStatement>
<code><![CDATA[$this->extensions]]></code>
<code><![CDATA[$this->factories]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[getExtensions]]></code>
<code><![CDATA[getFactories]]></code>
</InvalidReturnType>
</file>
<file src="src/TaggingServiceProvider.php">
<InvalidArgument>
<code><![CDATA[$factory]]></code>
</InvalidArgument>
<MissingClosureReturnType>
<code><![CDATA[fn (string $serviceName) => $c->get($serviceName)]]></code>
</MissingClosureReturnType>
<PossiblyInvalidArgument>
<code><![CDATA[$factory]]></code>
</PossiblyInvalidArgument>
<TypeDoesNotContainType>
<code><![CDATA[!is_array($tags[$tag])]]></code>
<code><![CDATA[get_class($factory) === 'Closure']]></code>
</TypeDoesNotContainType>
</file>
</files>
1 change: 1 addition & 0 deletions psalm.xml.dist
Expand Up @@ -19,6 +19,7 @@
throwExceptionOnError="false"
hideExternalErrors="true"
allowFileIncludes="true"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="src"/>
Expand Down

0 comments on commit 6b0fb67

Please sign in to comment.