diff --git a/lib/Enterprise/GitHubAdapter.php b/lib/Enterprise/GitHubAdapter.php index ef7c38c..efddeb4 100644 --- a/lib/Enterprise/GitHubAdapter.php +++ b/lib/Enterprise/GitHubAdapter.php @@ -405,7 +405,7 @@ class GitHubAdapter implements GitPlatformAdapter $page++; } - return $all; + return array_values($all); } // ────────────────────────────────────────────── diff --git a/lib/Enterprise/GitPlatformAdapter.php b/lib/Enterprise/GitPlatformAdapter.php index 9a7d420..e25b80d 100644 --- a/lib/Enterprise/GitPlatformAdapter.php +++ b/lib/Enterprise/GitPlatformAdapter.php @@ -175,7 +175,7 @@ interface GitPlatformAdapter /** * List all branches in a repository. * - * @return array> + * @return array */ public function listBranches(string $org, string $repo): array; @@ -258,7 +258,7 @@ interface GitPlatformAdapter * @param string $org Organization name * @param string $repo Repository name * @param array $filters Filters (state, head, base, sort, direction) - * @return array> Pull request list + * @return array Pull request list */ public function listPullRequests(string $org, string $repo, array $filters = []): array; @@ -305,7 +305,7 @@ interface GitPlatformAdapter * @param string $org Organization name * @param string $repo Repository name * @param array $filters Filters (state, labels, assignee, etc.) - * @return array> Issue list + * @return array Issue list */ public function listIssues(string $org, string $repo, array $filters = []): array; @@ -357,7 +357,7 @@ interface GitPlatformAdapter * * @param string $org Organization name * @param string $repo Repository name - * @return array Label list + * @return array Label list */ public function listLabels(string $org, string $repo): array; @@ -406,7 +406,7 @@ interface GitPlatformAdapter * * @param string $org Organization name * @param string $repo Repository name - * @return array> Protection rules + * @return array Protection rules */ public function listBranchProtections(string $org, string $repo): array; @@ -445,7 +445,7 @@ interface GitPlatformAdapter * @param string $endpoint API endpoint path * @param array $params Query parameters * @param int $perPage Items per page (platform default if 0) - * @return array> All items across all pages + * @return array All items across all pages */ public function paginateAll(string $endpoint, array $params = [], int $perPage = 100): array; diff --git a/lib/Enterprise/MokoGiteaAdapter.php b/lib/Enterprise/MokoGiteaAdapter.php index be4c1cd..9cc014d 100644 --- a/lib/Enterprise/MokoGiteaAdapter.php +++ b/lib/Enterprise/MokoGiteaAdapter.php @@ -468,7 +468,7 @@ class MokoGiteaAdapter implements GitPlatformAdapter $page++; } - return $all; + return array_values($all); } // ────────────────────────────────────────────── diff --git a/phpstan.neon b/phpstan.neon index b5dcc07..756a2f7 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,7 +6,7 @@ # PHPStan configuration for moko-platform projects parameters: - level: 2 + level: 3 paths: - lib - validate diff --git a/validate/check_file_integrity.php b/validate/check_file_integrity.php index 91e53e9..41b5b1e 100644 --- a/validate/check_file_integrity.php +++ b/validate/check_file_integrity.php @@ -25,7 +25,7 @@ final class CheckFileIntegrity private bool $verbose = false; private bool $jsonOutput = false; - /** @var array{host: string, port: int, user: string, identity: string} */ + /** @var array */ private array $sftpConfig = []; public function run(): int