Skip to content

Commit

Permalink
fixup! Tests for retry strategy extension
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMikes committed Jul 19, 2023
1 parent 0f03932 commit 57e81db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/DI/Utils/BuilderMan.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ public function getServiceNames(string $tag): array
return $definitions;
}

/**
* @return array<string, string>
*/
public function getRetryStrategies(): array
{
$builder = $this->pass->getContainerBuilder();
/**
* @return array<string, string>
*/
public function getRetryStrategies(): array
{
$builder = $this->pass->getContainerBuilder();

Check failure on line 114 in src/DI/Utils/BuilderMan.php

View workflow job for this annotation

GitHub Actions / Codesniffer / Codesniffer (8.1)

Unused variable $builder.
$definitions = $this->getServiceDefinitions(MessengerExtension::TRANSPORT_TAG);

$strategies = [];
Expand All @@ -125,5 +125,5 @@ public function getRetryStrategies(): array
}

return $strategies;

Check failure on line 127 in src/DI/Utils/BuilderMan.php

View workflow job for this annotation

GitHub Actions / Phpstan / Phpstan (8.1)

Method Contributte\Messenger\DI\Utils\BuilderMan::getRetryStrategies() should return array<string, string> but returns array<int|string, mixed>.
}
}

Check failure on line 128 in src/DI/Utils/BuilderMan.php

View workflow job for this annotation

GitHub Actions / Codesniffer / Codesniffer (8.1)

Expected 1 blank line after function; 0 found
}

Check failure on line 129 in src/DI/Utils/BuilderMan.php

View workflow job for this annotation

GitHub Actions / Codesniffer / Codesniffer (8.1)

There must be one empty line before class closing brace.

0 comments on commit 57e81db

Please sign in to comment.