소스 검색

fixes type hint

Johannes M. Schmitt 12 년 전
부모
커밋
8a6294a0f2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
     }