Skip to content

Commit

Permalink
Ignoring test/_files and detecting unused psalm suppressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Nov 18, 2022
1 parent 3643702 commit 8134333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 41 deletions.
41 changes: 0 additions & 41 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1418,45 +1418,4 @@
<code>documentNodesTest</code>
</MissingReturnType>
</file>
<file src="test/_files/commontypes.php">
<DuplicateClass occurrences="2">
<code>Laminas_Soap_Wsdl_ComplexTypeA</code>
<code>Laminas_Soap_Wsdl_ComplexTypeB</code>
</DuplicateClass>
<InvalidDocblock occurrences="1">
<code>public function addMultiple($test)</code>
</InvalidDocblock>
</file>
<file src="test/_files/fulltests/server1.php">
<DuplicateClass occurrences="1">
<code>Laminas_Soap_Wsdl_ComplexTypeB</code>
</DuplicateClass>
<InvalidDocblock occurrences="1">
<code>public function request($request)</code>
</InvalidDocblock>
</file>
<file src="test/_files/fulltests/server2.php">
<MissingFile occurrences="3">
<code>require_once "Laminas/Soap/AutoDiscover.php"</code>
<code>require_once "Laminas/Soap/Server.php"</code>
<code>require_once "Laminas/Soap/Wsdl/Strategy/ArrayOfTypeComplex.php"</code>
</MissingFile>
<MixedAssignment occurrences="2">
<code>$server</code>
<code>$server</code>
</MixedAssignment>
<MixedMethodCall occurrences="2">
<code>handle</code>
<code>setClass</code>
</MixedMethodCall>
<PossiblyUndefinedArrayOffset occurrences="2">
<code>$_SERVER['HTTP_HOST']</code>
<code>$_SERVER['PHP_SELF']</code>
</PossiblyUndefinedArrayOffset>
<UndefinedClass occurrences="3">
<code>Laminas_Soap_AutoDiscover</code>
<code>Laminas_Soap_Server</code>
<code>Laminas_Soap_Wsdl_Strategy_ArrayOfTypeComplex</code>
</UndefinedClass>
</file>
</files>
2 changes: 2 additions & 0 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
findUnusedPsalmSuppress="true"
>
<projectFiles>
<directory name="src"/>
<directory name="test"/>
<ignoreFiles>
<directory name="vendor"/>
<directory name="test/_files"/>
</ignoreFiles>
</projectFiles>

Expand Down

0 comments on commit 8134333

Please sign in to comment.