Skip to content

Commit

Permalink
Adjust types in lib/Writer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jan 23, 2023
1 parent fada782 commit 0b8b8aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class Writer
{
/**
* Serializes a vCard or iCalendar object.
*
* @param Component<int, mixed> $component
*/
public static function write(Component $component): string
{
Expand All @@ -26,6 +28,8 @@ public static function write(Component $component): string

/**
* Serializes a jCal or jCard object.
*
* @param Component<int, mixed> $component
*/
public static function writeJson(Component $component, int $options = 0): string
{
Expand All @@ -34,6 +38,8 @@ public static function writeJson(Component $component, int $options = 0): string

/**
* Serializes a xCal or xCard object.
*
* @param Component<int, mixed> $component
*/
public static function writeXml(Component $component): string
{
Expand Down

0 comments on commit 0b8b8aa

Please sign in to comment.