Skip to content

Commit

Permalink
Fix php 8.1 errors on unit test serializable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang committed Aug 18, 2022
1 parent 220b1f3 commit a884c08
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/Horde/Yaml/Helpers.php
Expand Up @@ -36,6 +36,16 @@ public function unserialize($serialized)
$this->string = $serialized;
}

public function __serialize(): array
{
return [$this->string];
}

public function __unserialize(array $serialized): void
{
$this->string = array_pop($serialized);
}

public function test()
{
return $this->string;
Expand Down

0 comments on commit a884c08

Please sign in to comment.