Skip to content

Commit

Permalink
suppress psalm validation errors for the setter setSslContext and the…
Browse files Browse the repository at this point in the history
… phpredis RedisCluster class
  • Loading branch information
robin-brabants committed Mar 13, 2024
1 parent d75d373 commit 8e32c6b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
<code>setReadTimeout</code>
<code>setSeeds</code>
<code>setTimeout</code>
<code>setSslContext</code>
</PossiblyUnusedMethod>
</file>
<file src="src/RedisOptions.php">
Expand Down
9 changes: 9 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@
<directory name="*"/>
</errorLevel>
</RedundantCastGivenDocblockType>
<!--
Psalm currently (<= 5.23.1) uses an outdated (phpredis < 5.3.2) constructor signature for the RedisCluster
class in the phpredis extension.
-->
<TooManyArguments>
<errorLevel type="suppress">
<referencedFunction name="RedisCluster::__construct"/>
</errorLevel>
</TooManyArguments>
</issueHandlers>
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
Expand Down

0 comments on commit 8e32c6b

Please sign in to comment.