Fixed phpstan issues

This commit is contained in:
Jan Böhmer 2024-06-23 00:42:49 +02:00
parent 06c8e584a4
commit 8fdf37261d

View file

@ -48,9 +48,6 @@ class StructuralElementNormalizer implements NormalizerInterface
return $data instanceof AbstractStructuralDBElement;
}
/**
* @return array<string, mixed>
*/
public function normalize($object, string $format = null, array $context = []): mixed
{
if (!$object instanceof AbstractStructuralDBElement) {
@ -59,6 +56,7 @@ class StructuralElementNormalizer implements NormalizerInterface
$data = $this->normalizer->normalize($object, $format, $context);
//If the data is not an array, we can't do anything with it
if (!is_array($data)) {
return $data;
}