Skip to content
Snippets Groups Projects

Resolve #3238915 "Refactor if feasible"

35 files
+ 36
48
Compare changes
  • Side-by-side
  • Inline
Files
35
  • 00ad1d75
    Issue #3254331 by paulocs, longwave: [Symfony 6] Add... · 00ad1d75
    Alex Pott authored
    Issue #3254331 by paulocs, longwave: [Symfony 6] Add "array|string|int|float|bool|\ArrayObject|null" to all Normalizer classes that implement the method ::normalize()
@@ -66,7 +66,7 @@ public function __construct(LinkManagerInterface $link_manager, EntityTypeManage
/**
* {@inheritdoc}
*/
public function normalize($entity, $format = NULL, array $context = []) {
public function normalize($entity, $format = NULL, array $context = []): array|string|int|float|bool|\ArrayObject|NULL {
$context += [
'account' => NULL,
'included_fields' => NULL,
Loading