Skip to content

Commit

Permalink
qa: rename `InvalidRedisClusterConfigurationException::forMissingSeed…
Browse files Browse the repository at this point in the history
…sForNodename` to `InvalidRedisClusterConfigurationException::fromMissingSeedsForNamedConfiguration`

Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed May 24, 2021
1 parent 0f71b13 commit f5bb3ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Exception/InvalidRedisClusterConfigurationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public static function fromMissingSeedsConfiguration(): self
return new self('Could not find `redis.clusters.seeds` entry in the php.ini file(s).');
}

public static function forMissingSeedsForNodename(string $nodename): self
public static function fromMissingSeedsForNamedConfiguration(string $name): self
{
return new self(sprintf(
'Missing `%s` within the configured `redis.cluster.seeds` entry in the php.ini file(s).',
$nodename
$name
));
}

Expand Down
2 changes: 1 addition & 1 deletion src/RedisClusterOptionsFromIni.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function seeds(string $nodename): array
{
$seeds = $this->seedsByNodename[$nodename] ?? [];
if (! $seeds) {
throw InvalidRedisClusterConfigurationException::forMissingSeedsForNodename($nodename);
throw InvalidRedisClusterConfigurationException::fromMissingSeedsForNamedConfiguration($nodename);
}

return $seeds;
Expand Down

0 comments on commit f5bb3ec

Please sign in to comment.