Browse Source

fixes type hint

Johannes M. Schmitt 12 years ago
parent
commit
8a6294a0f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/JMS/Serializer/Context.php

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

@@ -70,7 +70,7 @@ abstract class Context
         $this->metadataFactory = $factory;
     }
 
-    public function accept($data, array $type)
+    public function accept($data, array $type = null)
     {
         return $this->navigator->accept($data, $type, $this);
     }