Skip to content

Commit

Permalink
Shrinked psalm baseline according to recent type improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jul 27, 2022
1 parent db0016e commit 76bc043
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
46 changes: 8 additions & 38 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb">
<files psalm-version="4.24.0@06dd975cb55d36af80f242561738f16c5f58264f">
<file src="src/Address.php">
<DocblockTypeContradiction occurrences="2">
<code>! is_string($email)</code>
Expand All @@ -13,9 +13,8 @@
<code>$email</code>
<code>$name</code>
</MissingPropertyType>
<MixedArgument occurrences="2">
<MixedArgument occurrences="1">
<code>$email</code>
<code>array_shift($invalidMessages)</code>
</MixedArgument>
<MixedInferredReturnType occurrences="3">
<code>null|string</code>
Expand Down Expand Up @@ -93,15 +92,6 @@
<MixedArgument occurrences="1">
<code>$value</code>
</MixedArgument>
<MixedArrayAccess occurrences="1">
<code>$conversionInfo['errors']</code>
</MixedArrayAccess>
<MixedInferredReturnType occurrences="1">
<code>string</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$ascii</code>
</MixedReturnStatement>
<RedundantConditionGivenDocblockType occurrences="1">
<code>$format !== HeaderInterface::FORMAT_RAW</code>
</RedundantConditionGivenDocblockType>
Expand Down Expand Up @@ -529,9 +519,8 @@
<code>resetLog</code>
<code>setMaximumLog</code>
</MissingReturnType>
<MixedArgumentTypeCoercion occurrences="2">
<MixedArgumentTypeCoercion occurrences="1">
<code>$this-&gt;log</code>
<code>$this-&gt;validHost-&gt;getMessages()</code>
</MixedArgumentTypeCoercion>
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$port</code>
Expand Down Expand Up @@ -829,9 +818,6 @@
<code>$host</code>
<code>$port</code>
</MixedArgument>
<MixedArgumentTypeCoercion occurrences="1">
<code>$this-&gt;validHost-&gt;getMessages()</code>
</MixedArgumentTypeCoercion>
<MixedAssignment occurrences="2">
<code>$host</code>
<code>$port</code>
Expand Down Expand Up @@ -930,9 +916,6 @@
</PropertyNotSetInConstructor>
</file>
<file src="src/Protocol/SmtpPluginManager.php">
<InvalidScalarArgument occurrences="1">
<code>$e-&gt;getCode()</code>
</InvalidScalarArgument>
<MissingReturnType occurrences="1">
<code>validatePlugin</code>
</MissingReturnType>
Expand Down Expand Up @@ -1482,9 +1465,6 @@
<code>string</code>
</ImplementedReturnTypeMismatch>
<InvalidCatch occurrences="1"/>
<InvalidDocblock occurrences="1">
<code>public function __isset($name)</code>
</InvalidDocblock>
<InvalidReturnStatement occurrences="3">
<code>$return</code>
<code>$this-&gt;getHeader($name, 'string')</code>
Expand All @@ -1499,11 +1479,7 @@
<InvalidThrow occurrences="1">
<code>Exception\ExceptionInterface</code>
</InvalidThrow>
<MissingParamType occurrences="1">
<code>$name</code>
</MissingParamType>
<MixedArgument occurrences="6">
<code>$name</code>
<MixedArgument occurrences="5">
<code>$params['headers']</code>
<code>$params['headers']</code>
<code>$params['raw']</code>
Expand Down Expand Up @@ -3374,9 +3350,7 @@
<code>$subdirs</code>
<code>$tmpdir</code>
</MissingPropertyType>
<MixedArgument occurrences="4">
<code>$stat['mode']</code>
<code>$stat['mode']</code>
<MixedArgument occurrences="2">
<code>$this-&gt;params</code>
<code>$this-&gt;subdirs</code>
</MixedArgument>
Expand Down Expand Up @@ -3424,10 +3398,9 @@
<code>getMessage</code>
<code>selectFolder</code>
</MixedMethodCall>
<MixedOperand occurrences="14">
<MixedOperand occurrences="13">
<code>$dir</code>
<code>$dir</code>
<code>$statcheck['mode']</code>
<code>$this-&gt;params['dirname']</code>
<code>$this-&gt;params['dirname']</code>
<code>$this-&gt;params['dirname']</code>
Expand Down Expand Up @@ -3505,10 +3478,8 @@
<code>$mboxOriginalFile</code>
<code>$tmpdir</code>
</MissingPropertyType>
<MixedArgument occurrences="10">
<MixedArgument occurrences="8">
<code>$id</code>
<code>$stat['mode']</code>
<code>$stat['mode']</code>
<code>$this-&gt;mboxFile</code>
<code>$this-&gt;mboxFile</code>
<code>$this-&gt;mboxFile</code>
Expand All @@ -3527,8 +3498,7 @@
<code>getContent</code>
<code>getMessage</code>
</MixedMethodCall>
<MixedOperand occurrences="3">
<code>$statcheck['mode']</code>
<MixedOperand occurrences="2">
<code>$this-&gt;tmpdir</code>
<code>$this-&gt;tmpdir</code>
</MixedOperand>
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public function __get($name)
*
* @see Part::hasHeader
*
* @param string
* @param string $name
* @return bool
*/
public function __isset($name)
Expand Down

0 comments on commit 76bc043

Please sign in to comment.