Skip to content

Commit

Permalink
Merge pull request #18 from lyrixx/sf
Browse files Browse the repository at this point in the history
Add some type hint for SF 6+
  • Loading branch information
vtsykun authored Oct 31, 2024
2 parents 4517c70 + 5b308a3 commit 1f2ff1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Client/ClientWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(LoggerInterface $logger = null, ?string $instanceId
/**
* {@inheritdoc}
*/
public function configure(array $options = [])
public function configure(array $options = []): Client
{
$this->options = $options;
return parent::configure($options);
Expand All @@ -45,7 +45,7 @@ public function configure(array $options = [])
/**
* {@inheritdoc}
*/
public function event($title, $text, array $metadata = [], array $tags = [])
public function event($title, $text, array $metadata = [], array $tags = []): Client
{
if (!$this->dataDog) {
return $this;
Expand Down Expand Up @@ -97,7 +97,7 @@ public function getOptions(): array
/**
* {@inheritdoc}
*/
protected function sendMessages(array $messages)
protected function sendMessages(array $messages): Client
{
if ($this->repeatCount >= self::MAX_REPEAT_COUNT) {
return false;
Expand Down
6 changes: 3 additions & 3 deletions src/OkvpnDatadogBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct()
/**
* {@inheritdoc}
*/
public function boot()
public function boot(): void
{
if (null === $this->startTime) {
$this->startTime = microtime(true);
Expand All @@ -34,15 +34,15 @@ public function boot()
/**
* {@inheritdoc}
*/
public function shutdown()
public function shutdown(): void
{
$this->startTime = null;
}

/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new SqlLoggerPass(['default']));
$container->addCompilerPass(new PushDatadogHandlerPass());
Expand Down

0 comments on commit 1f2ff1c

Please sign in to comment.