Skip to content

Add missing parameters to RedisCluster signatures#4430

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
RobiNN1:2.1.x
Feb 5, 2026
Merged

Add missing parameters to RedisCluster signatures#4430
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
RobiNN1:2.1.x

Conversation

@RobiNN1
Copy link
Contributor

@RobiNN1 RobiNN1 commented Oct 12, 2025

No description provided.

@ondrejmirtes ondrejmirtes merged commit 8896129 into phpstan:2.1.x Feb 5, 2026
618 of 638 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

'RedisCluster::punSubscribe' => ['', 'channels'=>'', 'callback'=>'', 'pattern='=>'string', '...other_patterns='=>'string'],
'RedisCluster::randomKey' => ['string', 'nodeParams'=>'string'],
'RedisCluster::rawCommand' => ['mixed', 'nodeParams'=>'string', 'command'=>'string', 'arguments'=>'mixed'],
'RedisCluster::rawCommand' => ['mixed', 'key_or_address='=>'string|array', 'command'=>'string', '...arguments'=>'mixed'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems here is a typo, see

1) PHPStan\Reflection\SignatureMap\SignatureMapParserTest::testParseAll with data set #0 (70400)

rediscluster::rawcommand contains required parameter after optional.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we go: #4858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants