mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 03:08:51 +02:00
Fixed some inspection issues
This commit is contained in:
parent
33475dca66
commit
42e604245c
85 changed files with 272 additions and 291 deletions
|
@ -41,7 +41,7 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
|
|||
*/
|
||||
class DetermineTypeFromElementIRIDenormalizer implements DenormalizerInterface, DenormalizerAwareInterface
|
||||
{
|
||||
const SUPPORTED_CLASSES = [
|
||||
private const SUPPORTED_CLASSES = [
|
||||
Attachment::class,
|
||||
AbstractParameter::class
|
||||
];
|
||||
|
|
|
@ -54,7 +54,7 @@ class StructuralElementNormalizer implements NormalizerInterface
|
|||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function normalize($object, string $format = null, array $context = [])
|
||||
public function normalize($object, string $format = null, array $context = []): array
|
||||
{
|
||||
if (!$object instanceof AbstractStructuralDBElement) {
|
||||
throw new \InvalidArgumentException('This normalizer only supports AbstractStructural objects!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue