-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Psalm and bump errorLevel to 6 (#1532)
- Loading branch information
Showing
8 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<files psalm-version="4.1.1@16bfbd9224698bd738c665f33039fade2a1a3977"> | ||
<file src="src/Mutator/Regex/PregMatchRemoveCaret.php"> | ||
<ImpureFunctionCall occurrences="1"> | ||
<code>preg_match</code> | ||
</ImpureFunctionCall> | ||
<files psalm-version="4.x-dev@"> | ||
<file src="src/Mutator/IgnoreMutator.php"> | ||
<InvalidArgument occurrences="1"> | ||
<code>$node</code> | ||
</InvalidArgument> | ||
</file> | ||
<file src="src/Mutator/Regex/PregMatchRemoveDollar.php"> | ||
<ImpureFunctionCall occurrences="1"> | ||
<code>preg_match</code> | ||
</ImpureFunctionCall> | ||
<file src="src/TestFramework/Coverage/JUnit/JUnitTestFileDataProvider.php"> | ||
<InvalidReturnType occurrences="1"> | ||
<code>iterable<string, string></code> | ||
</InvalidReturnType> | ||
</file> | ||
<file src="src/Mutator/Regex/PregMatchRemoveFlags.php"> | ||
<ImpureFunctionCall occurrences="1"> | ||
<code>preg_match</code> | ||
</ImpureFunctionCall> | ||
<file src="src/TestFramework/Factory.php"> | ||
<InvalidArgument occurrences="1"> | ||
<code>$this->sourceFileFilter->filter($this->infectionConfig->getSourceFiles())</code> | ||
</InvalidArgument> | ||
</file> | ||
<file src="src/TestFramework/TestFrameworkExtraOptionsFilter.php"> | ||
<InvalidReturnStatement occurrences="1"> | ||
<code>preg_replace('/\s+/', ' ', trim($actualExtraOptions))</code> | ||
</InvalidReturnStatement> | ||
<InvalidReturnType occurrences="1"> | ||
<code>string</code> | ||
</InvalidReturnType> | ||
</file> | ||
</files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="8" | ||
errorLevel="6" | ||
resolveFromConfigFile="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
errorBaseline="psalm-baseline.xml" | ||
> | ||
<projectFiles> | ||
<directory name="src/Mutator" /> | ||
<directory name="src" /> | ||
<ignoreFiles> | ||
<directory name="src/PhpParser" /> | ||
<directory name="vendor" /> | ||
<directory name="src/PhpParser" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
|
||
<issueHandlers> | ||
<ImpureMethodCall> | ||
<errorLevel type="suppress"> | ||
<file name="src/Mutator/Operator/Concat.php"/> | ||
<directory name="src/Mutator"/> | ||
</errorLevel> | ||
</ImpureMethodCall> | ||
|
||
<ImpureFunctionCall> | ||
<errorLevel type="suppress"> | ||
<directory name="src/Mutator/Regex"/> | ||
</errorLevel> | ||
</ImpureFunctionCall> | ||
</issueHandlers> | ||
</psalm> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters