Skip to content

Commit

Permalink
regenerate psalm baseline
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Nov 2, 2024
1 parent b7ae47f commit a7e47b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
14 changes: 0 additions & 14 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
</TypeDoesNotContainType>
</file>
<file src="src/AbstractFilter.php">
<DocblockTypeContradiction>
<code><![CDATA[gettype($options)]]></code>
</DocblockTypeContradiction>
<InvalidPropertyAssignmentValue>
<code><![CDATA[[]]]></code>
</InvalidPropertyAssignmentValue>
Expand All @@ -37,9 +34,6 @@
<PossiblyInvalidPropertyAssignmentValue>
<code><![CDATA[$this->options]]></code>
</PossiblyInvalidPropertyAssignmentValue>
<RedundantConditionGivenDocblockType>
<code><![CDATA[is_object($options)]]></code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/AbstractUnicode.php">
<DeprecatedClass>
Expand Down Expand Up @@ -394,13 +388,6 @@
</RedundantCastGivenDocblockType>
</file>
<file src="src/Compress/Zip.php">
<InvalidArgument>
<code><![CDATA[$res]]></code>
<code><![CDATA[$res]]></code>
<code><![CDATA[$res]]></code>
<code><![CDATA[$res]]></code>
<code><![CDATA[$res]]></code>
</InvalidArgument>
<InvalidNullableReturnType>
<code><![CDATA[string]]></code>
</InvalidNullableReturnType>
Expand Down Expand Up @@ -2078,7 +2065,6 @@
<PossiblyUnusedMethod>
<code><![CDATA[objectCallback]]></code>
<code><![CDATA[objectCallbackWithParams]]></code>
<code><![CDATA[staticCallback]]></code>
</PossiblyUnusedMethod>
</file>
<file src="test/TestAsset/LowerCase.php">
Expand Down
5 changes: 4 additions & 1 deletion src/Inflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ public function getRules($spec = null)
{
if (null !== $spec) {
$spec = $this->_normalizeSpec($spec);
return $this->rules[$spec] ?? false;
if (isset($this->rules[$spec])) {
return $this->rules[$spec];
}
return false;
}

return $this->rules;
Expand Down

0 comments on commit a7e47b5

Please sign in to comment.