Skip to content

Commit b8c8179

Browse files
committed
fix deprecations
1 parent 5d29767 commit b8c8179

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

DependencyInjection/EnqueueExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
use Symfony\Component\Config\FileLocator;
2323
use Symfony\Component\Config\Resource\FileResource;
2424
use Symfony\Component\DependencyInjection\ContainerBuilder;
25+
use Symfony\Component\DependencyInjection\Extension\Extension;
2526
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
2627
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
2728
use Symfony\Component\DependencyInjection\Reference;
28-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
2929

3030
final class EnqueueExtension extends Extension implements PrependExtensionInterface
3131
{

Profiler/AbstractMessageQueueCollector.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,19 @@ public function prettyPrintPriority($priority)
5959
}
6060

6161
/**
62-
* @param mixed $body
63-
*
6462
* @return string
6563
*/
6664
public function ensureString($body)
6765
{
6866
return is_string($body) ? $body : JSON::encode($body);
6967
}
7068

71-
/**
72-
* {@inheritdoc}
73-
*/
7469
public function getName(): string
7570
{
7671
return 'enqueue.message_queue';
7772
}
7873

79-
/**
80-
* {@inheritdoc}
81-
*/
82-
public function reset()
74+
public function reset(): void
8375
{
8476
$this->data = [];
8577
}

Profiler/MessageQueueCollector.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
use Symfony\Component\HttpFoundation\Request;
66
use Symfony\Component\HttpFoundation\Response;
7-
use Throwable;
87

98
class MessageQueueCollector extends AbstractMessageQueueCollector
109
{
11-
public function collect(Request $request, Response $response, Throwable $exception = null)
10+
public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
1211
{
1312
$this->collectInternal($request, $response);
1413
}

0 commit comments

Comments
 (0)