diff --git a/stubs/CoreGenericClasses.phpstub b/stubs/CoreGenericClasses.phpstub index bd915e9cb..b39af3df9 100644 --- a/stubs/CoreGenericClasses.phpstub +++ b/stubs/CoreGenericClasses.phpstub @@ -426,15 +426,15 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count interface Serializable { /** - * @return string the string representation of the object or null + * @return null|string */ public function serialize(); /** - * @param string $serialized
+ * @param string $data * @return void */ - public function unserialize($serialized); + public function unserialize($data); } /** diff --git a/tests/MethodSignatureTest.php b/tests/MethodSignatureTest.php index 6ce52fb6b..5c222481d 100644 --- a/tests/MethodSignatureTest.php +++ b/tests/MethodSignatureTest.php @@ -1376,14 +1376,6 @@ class MethodSignatureTest extends TestCase }', 'error_message' => 'MoreSpecificImplementedParamType', ], - 'preventImplementingSerializableWithType' => [ - ' 'InvalidReturnType', - ], 'preventImplementingSerializableWithWrongDocblockType' => [ '