Merge pull request 'fix: PHPStan level 3 - 12 return type errors fixed' (#123) from dev into main
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 4s
Generic: Repo Health / Scripts governance (push) Successful in 5s
Generic: Repo Health / Release configuration (push) Successful in 5s
Generic: Repo Health / Repository health (push) Successful in 11s
Platform: moko-platform CI / Gate 1: Code Quality (push) Successful in 45s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Failing after 5s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Successful in 55s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Successful in 57s
Platform: moko-platform CI / Gate 4: Governance (push) Successful in 57s
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Failing after 58s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Successful in 1m0s
Platform: moko-platform CI / CI Summary (push) Blocked by required conditions
Generic: Repo Health / Site Health (push) Has been skipped
Generic: Repo Health / Access control (push) Successful in 1s
Universal: Cascade Main → Dev / Cascade main → branches (push) Successful in 4s
Generic: Repo Health / Scripts governance (push) Successful in 5s
Generic: Repo Health / Release configuration (push) Successful in 5s
Generic: Repo Health / Repository health (push) Successful in 11s
Platform: moko-platform CI / Gate 1: Code Quality (push) Successful in 45s
Platform: moko-platform CI / Gate 5: Template Integrity (push) Failing after 5s
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Successful in 55s
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Successful in 57s
Platform: moko-platform CI / Gate 4: Governance (push) Successful in 57s
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Failing after 58s
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Successful in 1m0s
This commit was merged in pull request #123.
This commit is contained in:
@@ -405,7 +405,7 @@ class GitHubAdapter implements GitPlatformAdapter
|
||||
$page++;
|
||||
}
|
||||
|
||||
return $all;
|
||||
return array_values($all);
|
||||
}
|
||||
|
||||
// ──────────────────────────────────────────────
|
||||
|
||||
@@ -175,7 +175,7 @@ interface GitPlatformAdapter
|
||||
/**
|
||||
* List all branches in a repository.
|
||||
*
|
||||
* @return array<int, array<string, mixed>>
|
||||
* @return array<mixed>
|
||||
*/
|
||||
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<string, mixed> $filters Filters (state, head, base, sort, direction)
|
||||
* @return array<int, array<string, mixed>> Pull request list
|
||||
* @return array<mixed> 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<string, mixed> $filters Filters (state, labels, assignee, etc.)
|
||||
* @return array<int, array<string, mixed>> Issue list
|
||||
* @return array<mixed> 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<int, array{name: string, color: string, description: string}> Label list
|
||||
* @return array<mixed> 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<int, array<string, mixed>> Protection rules
|
||||
* @return array<mixed> Protection rules
|
||||
*/
|
||||
public function listBranchProtections(string $org, string $repo): array;
|
||||
|
||||
@@ -445,7 +445,7 @@ interface GitPlatformAdapter
|
||||
* @param string $endpoint API endpoint path
|
||||
* @param array<string, mixed> $params Query parameters
|
||||
* @param int $perPage Items per page (platform default if 0)
|
||||
* @return array<int, array<string, mixed>> All items across all pages
|
||||
* @return array<mixed> All items across all pages
|
||||
*/
|
||||
public function paginateAll(string $endpoint, array $params = [], int $perPage = 100): array;
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ class MokoGiteaAdapter implements GitPlatformAdapter
|
||||
$page++;
|
||||
}
|
||||
|
||||
return $all;
|
||||
return array_values($all);
|
||||
}
|
||||
|
||||
// ──────────────────────────────────────────────
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
# PHPStan configuration for moko-platform projects
|
||||
parameters:
|
||||
level: 2
|
||||
level: 3
|
||||
paths:
|
||||
- lib
|
||||
- validate
|
||||
|
||||
@@ -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<string, mixed> */
|
||||
private array $sftpConfig = [];
|
||||
|
||||
public function run(): int
|
||||
|
||||
Reference in New Issue
Block a user