Explorar el Código

Add array typehint for data argument in fromArray()

Tyler Stroud hace 10 años
padre
commit
b3ea96568c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();