Skip to content

Commit

Permalink
Baseline minor psalm issues
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Nov 29, 2024
1 parent 1197aba commit ef871e3
Showing 1 changed file with 41 additions and 57 deletions.
98 changes: 41 additions & 57 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,81 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.1.0@4defa177c89397c5e14737a80fe4896584130674">
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
<file src="src/FlashMessenger.php">
<MixedArrayOffset occurrences="1">
<code>$this-&gt;messages[$namespace]</code>
</MixedArrayOffset>
<MixedAssignment occurrences="8">
<code>$messages</code>
<code>$messages</code>
<code>$namespace</code>
<code>$namespace</code>
<code>$namespace</code>
<code>$namespace</code>
<code>$namespaces[]</code>
<code>$namespaces[]</code>
</MixedAssignment>
<MixedMethodCall occurrences="1">
<code>push</code>
<MixedMethodCall>
<code><![CDATA[push]]></code>
</MixedMethodCall>
<MixedPropertyTypeCoercion occurrences="1">
<code>$this-&gt;messages</code>
<MixedPropertyTypeCoercion>
<code><![CDATA[$this->messages]]></code>
</MixedPropertyTypeCoercion>
<UnusedForeachValue occurrences="1">
<code>$messages</code>
<UnusedForeachValue>
<code><![CDATA[$messages]]></code>
</UnusedForeachValue>
</file>
<file src="src/View/Helper/FlashMessenger.php">
<DocblockTypeContradiction occurrences="1">
<code>gettype($pluginFlashMessenger)</code>
<DocblockTypeContradiction>
<code><![CDATA[gettype($pluginFlashMessenger)]]></code>
</DocblockTypeContradiction>
<InternalMethod occurrences="1">
<code>new EscapeHtml()</code>
<InternalMethod>
<code><![CDATA[new EscapeHtml()]]></code>
</InternalMethod>
<MissingClosureParamType occurrences="1">
<code>$item</code>
<MissingClosureParamType>
<code><![CDATA[$item]]></code>
</MissingClosureParamType>
<MixedArgument occurrences="2">
<code>$item</code>
<code>$messagesToPrint</code>
<MixedArgument>
<code><![CDATA[$item]]></code>
<code><![CDATA[$item]]></code>
</MixedArgument>
<MixedArgumentTypeCoercion occurrences="1">
<code>$classes</code>
<MixedArgumentTypeCoercion>
<code><![CDATA[$classes]]></code>
<code><![CDATA[$messagesToPrint]]></code>
</MixedArgumentTypeCoercion>
<MixedArrayAssignment occurrences="2">
<code>$messagesToPrint[]</code>
<code>$messagesToPrint[]</code>
</MixedArrayAssignment>
<MixedAssignment occurrences="2">
<code>$messagesToPrint[]</code>
<code>$messagesToPrint[]</code>
<MixedAssignment>
<code><![CDATA[$messagesToPrint[]]]></code>
<code><![CDATA[$messagesToPrint[]]]></code>
</MixedAssignment>
<RedundantCastGivenDocblockType occurrences="1">
<code>(bool) $autoEscape</code>
<RedundantCastGivenDocblockType>
<code><![CDATA[(bool) $autoEscape]]></code>
</RedundantCastGivenDocblockType>
<RedundantConditionGivenDocblockType occurrences="1">
<code>is_object($pluginFlashMessenger)</code>
<RedundantConditionGivenDocblockType>
<code><![CDATA[is_object($pluginFlashMessenger)]]></code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/View/Helper/FlashMessengerFactory.php">
<MixedArrayAccess occurrences="2">
<code>$config['view_helper_config']</code>
<code>$config['view_helper_config']['flashmessenger']</code>
<MixedArrayAccess>
<code><![CDATA[$config['view_helper_config']]]></code>
<code><![CDATA[$config['view_helper_config']['flashmessenger']]]></code>
</MixedArrayAccess>
<MixedAssignment occurrences="3">
<code>$config</code>
<code>$container</code>
<code>$controllerPluginManager</code>
<MixedAssignment>
<code><![CDATA[$config]]></code>
<code><![CDATA[$container]]></code>
<code><![CDATA[$controllerPluginManager]]></code>
</MixedAssignment>
<MixedMethodCall occurrences="3">
<code>get</code>
<code>get</code>
<code>get</code>
<MixedMethodCall>
<code><![CDATA[get]]></code>
<code><![CDATA[get]]></code>
<code><![CDATA[get]]></code>
</MixedMethodCall>
<PossiblyNullArgument occurrences="1">
<code>$requestedName</code>
<PossiblyNullArgument>
<code><![CDATA[$requestedName]]></code>
</PossiblyNullArgument>
<UndefinedInterfaceMethod occurrences="1">
<code>getServiceLocator</code>
<UndefinedInterfaceMethod>
<code><![CDATA[getServiceLocator]]></code>
</UndefinedInterfaceMethod>
</file>
</files>

0 comments on commit ef871e3

Please sign in to comment.