Skip to content

Commit 3c7e958

Browse files
committed
fix: Type void cannot be part of a union type declaration.
1 parent 03bd832 commit 3c7e958

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Dock.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ public function cancelBounce()
4343
$this->client->post('dock/cancel-bounce');
4444
}
4545

46-
public function badge(?string $label = null): void|string
46+
public function badge(?string $label = null): ?string
4747
{
4848
if (is_null($label)) {
4949
return $this->client->get('dock/badge');
5050
}
5151

5252
$this->client->post('dock/badge', ['label' => $label]);
53+
54+
return null;
5355
}
5456
}

0 commit comments

Comments
 (0)