Skip to content

Commit 425437b

Browse files
committed
change method signature
1 parent 75b415d commit 425437b

File tree

2 files changed

+8
-60
lines changed

2 files changed

+8
-60
lines changed

composer.lock

Lines changed: 5 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Symfony/SymfonyMessageSerializer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ final class SymfonyMessageSerializer implements MessageEncoder, MessageDecoder
5151
* @noinspection PhpDocMissingThrowsInspection
5252
* @noinspection PhpDocSignatureInspection
5353
*
54-
* @param Serializer $serializer
55-
* @param object ...$normalizers NormalizerInterface[] or/and DenormalizerInterface[] implementation
54+
* @param Serializer $serializer
55+
* @param SymfonySerializer\Normalizer\NormalizerInterface[]|SymfonySerializer\Normalizer\DenormalizerInterface[] $normalizers
5656
*/
57-
public function __construct(Serializer $serializer = null, object ...$normalizers)
57+
public function __construct(Serializer $serializer = null, array $normalizers = [])
5858
{
5959
/** @noinspection PhpUnhandledExceptionInspection */
6060
$defaultNormalizers = [

0 commit comments

Comments
 (0)