Skip to content

Commit

Permalink
style: supress phpcs typehing warning
Browse files Browse the repository at this point in the history
Signed-off-by: hcdias <huferreira@leroymerlin.com.br>
  • Loading branch information
hcdias committed Oct 9, 2023
1 parent f6b6af4 commit 5afadef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/Connectors/AbstractConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

abstract class AbstractConfig
{
/**
* @var string[]
*/
protected array $rules;

protected function getBrokerConfig(string $servicesFile): array
{
if (!$brokerConfig = config($servicesFile . '.broker')) {
Expand All @@ -15,7 +20,7 @@ protected function getBrokerConfig(string $servicesFile): array
);
}

return $brokerConfig;
return $brokerConfig->all();
}

protected function getSchemaConfig(string $servicesFile): array
Expand Down
2 changes: 1 addition & 1 deletion src/Connectors/Consumer/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class Config extends AbstractConfig
{
/**
* @var array<string, string>
* @var string[]
*/
protected array $rules = [
'topic' => 'required',
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Connectors/Producer/ConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function testItShouldMakeSetup(): void

$connector = new Connector();
$handler = new class ('record', $producerConfigOptions) extends AbstractProducer implements HandleableResponseInterface {
/** @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter */
public function success(Message $message): void
{
}
Expand Down Expand Up @@ -83,6 +84,7 @@ public function testItShouldMakeSetupWithoutHandleResponse(): void

$connector = new Connector();
$handler = new class ('record', $producerConfigOptions) extends AbstractProducer implements HandlerInterface {
/** @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter */
public function success(Message $message): void
{
}
Expand Down

0 comments on commit 5afadef

Please sign in to comment.