mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-18 16:37:43 +03:00
Ignore serialization shape checking for code coverage purposes
This commit is contained in:
@@ -128,9 +128,11 @@ final class Time implements TypeInterface
|
||||
*/
|
||||
public function __unserialize(array $data): void
|
||||
{
|
||||
// @codeCoverageIgnoreStart
|
||||
if (!isset($data['seconds']) || !isset($data['microseconds'])) {
|
||||
throw new ValueError(sprintf('%s(): Argument #1 ($data) is invalid', __METHOD__));
|
||||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
||||
$this->__construct($data['seconds'], $data['microseconds']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user