Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
parameters:
ignoreErrors:
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Transformer/Transformer.php

6 changes: 0 additions & 6 deletions src/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public function __construct(MessageToArrayInterface $transformer, ArrayToMessage
$this->logger = $logger ?? new NullLogger();
}

/**
* {@inheritdoc}
*/
public function decode(array $encodedEnvelope): Envelope
{
if (empty($encodedEnvelope['body'])) {
Expand Down Expand Up @@ -59,9 +56,6 @@ public function decode(array $encodedEnvelope): Envelope
return $this->addMetaToEnvelope($meta, $envelope);
}

/**
* {@inheritdoc}
*/
public function encode(Envelope $envelope): array
{
$envelope = $envelope->withoutStampsOfType(NonSendableStampInterface::class);
Expand Down
6 changes: 0 additions & 6 deletions src/SerializerRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public function __construct(SerializerInterface $happyrSerializer, SerializerInt
$this->symfonySerializer = $symfonySerializer;
}

/**
* {@inheritdoc}
*/
public function decode(array $encodedEnvelope): Envelope
{
if (empty($encodedEnvelope['body'])) {
Expand All @@ -50,9 +47,6 @@ public function decode(array $encodedEnvelope): Envelope
return $this->symfonySerializer->decode($encodedEnvelope);
}

/**
* {@inheritdoc}
*/
public function encode(Envelope $envelope): array
{
try {
Expand Down
Loading