Add baseline to avoid issues in vimeo/psalm:master

This commit is contained in:
Matt Brown 2021-03-22 19:36:35 -04:00 committed by Bruce Weirdan
parent 60683bf0f7
commit b3c8c1eaf2
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D
2 changed files with 63 additions and 5 deletions

View File

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@b4fab67f3b98be02c9f7e18cf9912c4d941f5a59">
<file src="src/Psl/Filesystem/create_temporary_file.php">
<MixedArgument occurrences="2">
<code>SEPARATOR</code>
<code>SEPARATOR</code>
</MixedArgument>
</file>
<file src="src/Psl/Hash/Context.php">
<UnusedFunctionCall occurrences="1">
<code>hash_update</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/Math/base_convert.php">
<UnnecessaryVarAnnotation occurrences="2">
<code>numeric-string</code>
<code>string</code>
</UnnecessaryVarAnnotation>
</file>
<file src="src/Psl/Result/Success.php">
<UnusedFunctionCall occurrences="1">
<code>Psl\invariant_violation</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/Str/Byte/contains.php">
<UnusedFunctionCall occurrences="1">
<code>Psl\Internal\validate_offset</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/Str/Byte/contains_ci.php">
<UnusedFunctionCall occurrences="1">
<code>Psl\Internal\validate_offset</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/Str/Grapheme/contains.php">
<UnusedFunctionCall occurrences="1">
<code>Psl\Internal\validate_offset</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/Str/Grapheme/contains_ci.php">
<UnusedFunctionCall occurrences="1">
<code>Psl\Internal\validate_offset</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/Str/contains.php">
<UnusedFunctionCall occurrences="1">
<code>Psl\Internal\validate_offset</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/Str/contains_ci.php">
<UnusedFunctionCall occurrences="1">
<code>Psl\Internal\validate_offset</code>
</UnusedFunctionCall>
</file>
<file src="src/Psl/invariant.php">
<UnusedFunctionCall occurrences="1">
<code>invariant_violation</code>
</UnusedFunctionCall>
</file>
</files>

View File

@ -1,5 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<psalm totallyTyped="true" resolveFromConfigFile="true" forbidEcho="true" strictBinaryOperands="true" phpVersion="7.4" allowPhpStormGenerics="true" allowStringToStandInForClass="true" rememberPropertyAssignmentsAfterCall="false" skipChecksOnUnresolvableIncludes="false" checkForThrowsDocblock="true" checkForThrowsInGlobalScope="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"> <psalm totallyTyped="true" resolveFromConfigFile="true" forbidEcho="true" strictBinaryOperands="true" phpVersion="7.4" allowPhpStormGenerics="true" allowStringToStandInForClass="true" rememberPropertyAssignmentsAfterCall="false" skipChecksOnUnresolvableIncludes="false" checkForThrowsDocblock="true" checkForThrowsInGlobalScope="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> <projectFiles>
<directory name="../../src" /> <directory name="../../src" />
<directory name="../../integration" /> <directory name="../../integration" />
@ -7,6 +8,7 @@
<file name="../../src/bootstrap.php" /> <file name="../../src/bootstrap.php" />
<file name="../../src/preload.php" /> <file name="../../src/preload.php" />
<file name="../../src/Psl/Internal/Loader.php" /> <file name="../../src/Psl/Internal/Loader.php" />
<file name="../../src/Psl/Filesystem/create_temporary_file.php" />
</ignoreFiles> </ignoreFiles>
</projectFiles> </projectFiles>
@ -44,8 +46,4 @@
<RedundantCast errorLevel="suppress" /> <RedundantCast errorLevel="suppress" />
<RedundantCastGivenDocblockType errorLevel="suppress" /> <RedundantCastGivenDocblockType errorLevel="suppress" />
</issueHandlers> </issueHandlers>
<plugins>
<pluginClass class="Psl\Psalm\Plugin" />
</plugins>
</psalm> </psalm>