Fix PhanTypeMismatchDeclaredParam
[lhc/web/wiklou.git] / tests / phpunit / mocks / content / DummyContentHandlerForTesting.php
index 78d5dc7..f203907 100644 (file)
@@ -2,15 +2,15 @@
 
 class DummyContentHandlerForTesting extends ContentHandler {
 
-       public function __construct( $dataModel ) {
-               parent::__construct( $dataModel, [ DummyContentForTesting::MODEL_ID ] );
+       public function __construct( $dataModel, $formats = [ DummyContentForTesting::MODEL_ID ] ) {
+               parent::__construct( $dataModel, $formats );
        }
 
        /**
         * @see ContentHandler::serializeContent
         *
         * @param Content $content
-        * @param string $format
+        * @param string|null $format
         *
         * @return string
         */
@@ -22,7 +22,7 @@ class DummyContentHandlerForTesting extends ContentHandler {
         * @see ContentHandler::unserializeContent
         *
         * @param string $blob
-        * @param string $format Unused.
+        * @param string|null $format Unused.
         *
         * @return Content
         */