Skip to content

Commit 98e2e9b

Browse files
committed
fix: update listBranches docblocks in Gitea and Gogs to fix PHPStan errors
1 parent 09c3882 commit 98e2e9b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/VCS/Adapter/Git/Gitea.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ public function getPullRequestFromBranch(string $owner, string $repositoryName,
729729
*
730730
* @param string $owner Owner of the repository
731731
* @param string $repositoryName Name of the repository
732-
* @return array<string> Array of branch names
732+
* @return array{items: array<string>, hasNext: bool, nextCursor: string|null}
733733
*/
734734
public function listBranches(string $owner, string $repositoryName, int $perPage = 100, int|string|null $page = 1, string $search = ''): array
735735
{

src/VCS/Adapter/Git/Gogs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,9 @@ public function getCommitStatuses(string $owner, string $repositoryName, string
501501
/**
502502
* List branches
503503
*
504-
* Gogs supports listing branches but without pagination parameters.
504+
* Gogs API returns all branches in a single request (no pagination support).
505505
*
506-
* @return array<string>
506+
* @return array{items: array<string>, hasNext: bool, nextCursor: string|null}
507507
*/
508508
public function listBranches(string $owner, string $repositoryName, int $perPage = 100, int|string|null $page = 1, string $search = ''): array
509509
{

0 commit comments

Comments
 (0)