Skip to content

Commit

Permalink
Add parameters to serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Jan 16, 2025
1 parent 8160c66 commit 555795c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Discord/Helpers/CollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function offsetExists($offset): bool;
public function offsetGet($offset);
public function offsetSet($offset, $value): void;
public function offsetUnset($offset): void;
public function serialize(): string;
public function serialize(int $flags, int $depth): string;
public function __serialize(): array;
public function unserialize(string $serialized): void;
public function __unserialize(array $data): void;
Expand Down
2 changes: 1 addition & 1 deletion src/Discord/Helpers/CollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public function offsetUnset($offset): void
*
* @return string
*/
public function serialize(): string
public function serialize(int $flags, int $depth): string
{
return json_encode($this->items);
}
Expand Down

0 comments on commit 555795c

Please sign in to comment.