Skip to content

Commit

Permalink
labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
puklipo committed Dec 25, 2024
1 parent f76be51 commit 53943c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Labeler/SavedLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(
}

/**
* @return array{id: int, uri: string, cid: ?string, val: string, src: string, cts: string, exp: ?string, sig: AtBytes}
* @return array{id: int, uri: string, cid: ?string, val: string, src: string, cts: string, exp: ?string, neg: bool, sig: AtBytes}
*/
public function toArray(): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Labeler/SignedLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function toUnsigned(): UnsignedLabel
}

/**
* @return array{uri: string, cid: ?string, val: string, src: string, cts: string, exp: ?string, sig: AtBytes}
* @return array{uri: string, cid: ?string, val: string, src: string, cts: string, exp: ?string, neg: bool, sig: AtBytes}
*/
public function toArray(): array
{
Expand Down
3 changes: 2 additions & 1 deletion src/Labeler/UnsignedLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public function __construct(
public string $src,
public string $cts,
public ?string $exp,
public bool $neg = false,
) {
}

Expand All @@ -29,7 +30,7 @@ public function toSigned(string|AtBytes $sig): SignedLabel
}

/**
* @return array{uri: string, cid: ?string, val: string, src: string, cts: string, exp: ?string}
* @return array{uri: string, cid: ?string, val: string, src: string, cts: string, exp: ?string, neg: bool}
*/
public function toArray(): array
{
Expand Down
2 changes: 1 addition & 1 deletion workbench/app/Labeler/ArtisanLabeler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function subscribeLabels(?int $cursor): iterable
yield null;
}

public function emitEvent(Request $request, ?string $user): iterable
public function emitEvent(Request $request, ?string $user, ?string $token): iterable
{
return null;
}
Expand Down

0 comments on commit 53943c7

Please sign in to comment.