Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 6.4:
  stop marking parameters implicitly as nullable
  include message id provided by the MTA when dispatching the SentMessageEvent
  • Loading branch information
xabbuh committed Mar 28, 2024
2 parents 61d898b + 3697adf commit dbdc0c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Tests/Fixtures/FooInterfaceDummyDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

final class FooInterfaceDummyDenormalizer implements DenormalizerInterface
{
public function denormalize(mixed $data, string $type, string $format = null, array $context = []): array
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): array
{
$result = [];
foreach ($data as $foo) {
Expand All @@ -27,7 +27,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
return $result;
}

public function supportsDenormalization(mixed $data, string $type, string $format = null, array $context = []): bool
public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool
{
if (str_ends_with($type, '[]')) {
$className = substr($type, 0, -2);
Expand Down
6 changes: 3 additions & 3 deletions Tests/Fixtures/StaticConstructorNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ public function getSupportedTypes(?string $format): array
return [StaticConstructorDummy::class];
}

protected function extractAttributes(object $object, string $format = null, array $context = []): array
protected function extractAttributes(object $object, ?string $format = null, array $context = []): array
{
return get_object_vars($object);
}

protected function getAttributeValue(object $object, string $attribute, string $format = null, array $context = []): mixed
protected function getAttributeValue(object $object, string $attribute, ?string $format = null, array $context = []): mixed
{
return $object->$attribute;
}

protected function setAttributeValue(object $object, string $attribute, mixed $value, string $format = null, array $context = []): void
protected function setAttributeValue(object $object, string $attribute, mixed $value, ?string $format = null, array $context = []): void
{
$object->$attribute = $value;
}
Expand Down

0 comments on commit dbdc0c0

Please sign in to comment.