dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix PhanTypeMismatchDeclaredParam
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
mocks
/
content
/
DummyContentHandlerForTesting.php
diff --git
a/tests/phpunit/mocks/content/DummyContentHandlerForTesting.php
b/tests/phpunit/mocks/content/DummyContentHandlerForTesting.php
index
6b9b782
..
f203907
100644
(file)
--- a/
tests/phpunit/mocks/content/DummyContentHandlerForTesting.php
+++ b/
tests/phpunit/mocks/content/DummyContentHandlerForTesting.php
@@
-2,15
+2,15
@@
class DummyContentHandlerForTesting extends ContentHandler {
class DummyContentHandlerForTesting extends ContentHandler {
- public function __construct( $dataModel ) {
- parent::__construct( $dataModel,
[ "testing" ]
);
+ public function __construct( $dataModel
, $formats = [ DummyContentForTesting::MODEL_ID ]
) {
+ parent::__construct( $dataModel,
$formats
);
}
/**
* @see ContentHandler::serializeContent
*
* @param Content $content
}
/**
* @see ContentHandler::serializeContent
*
* @param Content $content
- * @param string $format
+ * @param string
|null
$format
*
* @return string
*/
*
* @return string
*/
@@
-22,7
+22,7
@@
class DummyContentHandlerForTesting extends ContentHandler {
* @see ContentHandler::unserializeContent
*
* @param string $blob
* @see ContentHandler::unserializeContent
*
* @param string $blob
- * @param string $format Unused.
+ * @param string
|null
$format Unused.
*
* @return Content
*/
*
* @return Content
*/