Ver Fonte

Add array typehint for data argument in fromArray()

Tyler Stroud há 10 anos atrás
pai
commit
b3ea96568c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/JMS/Serializer/Serializer.php

+ 1 - 1
src/JMS/Serializer/Serializer.php

@@ -140,7 +140,7 @@ class Serializer implements SerializerInterface
         return (array) $visitor->getRoot();
     }
 
-    public function fromArray($data, $type, DeserializationContext $context = null)
+    public function fromArray(array $data, $type, DeserializationContext $context = null)
     {
         if (null === $context) {
             $context = new DeserializationContext();