Skip to content

Commit bf29b8b

Browse files
committed
Correct constructor types
1 parent 93352c3 commit bf29b8b

File tree

702 files changed

+30098
-2255
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

702 files changed

+30098
-2255
lines changed

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/OpenAPI/ApiGitHubCom/Hydrator.php

Lines changed: 29394 additions & 1551 deletions
Large diffs are not rendered by default.

src/OpenAPI/ApiGitHubCom/Schema/ActionsBillingUsage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class ActionsBillingUsage
2020
*/
2121
public readonly int $included_minutes;
2222
public readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ActionsBillingUsage\MinutesUsedBreakdown $minutes_used_breakdown;
23-
public function __construct(int $total_minutes_used, int $total_paid_minutes_used, int $included_minutes, object $minutes_used_breakdown)
23+
public function __construct(int $total_minutes_used, int $total_paid_minutes_used, int $included_minutes, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ActionsBillingUsage\MinutesUsedBreakdown $minutes_used_breakdown)
2424
{
2525
$this->total_minutes_used = $total_minutes_used;
2626
$this->total_paid_minutes_used = $total_paid_minutes_used;

src/OpenAPI/ApiGitHubCom/Schema/AddedToProjectIssueEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class AddedToProjectIssueEvent
2020
public readonly string $created_at;
2121
public readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AddedToProjectIssueEvent\PerformedViaGithubApp $performed_via_github_app;
2222
public readonly ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AddedToProjectIssueEvent\ProjectCard $project_card;
23-
public function __construct(int $id, string $node_id, string $url, object $actor, string $event, string $commit_id, string $commit_url, string $created_at, mixed $performed_via_github_app, object $project_card)
23+
public function __construct(int $id, string $node_id, string $url, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\SimpleUser $actor, string $event, string $commit_id, string $commit_url, string $created_at, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AddedToProjectIssueEvent\PerformedViaGithubApp $performed_via_github_app, ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AddedToProjectIssueEvent\ProjectCard $project_card)
2424
{
2525
$this->id = $id;
2626
$this->node_id = $node_id;

src/OpenAPI/ApiGitHubCom/Schema/Alert/MostRecentInstance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class MostRecentInstance
3333
/**
3434
* @param array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\MostRecentInstance\Classifications> $classifications
3535
*/
36-
public function __construct(string $analysis_key, array $classifications, string $commit_sha, string $environment, object $location, object $message, string $ref, string $state)
36+
public function __construct(string $analysis_key, array $classifications, string $commit_sha, string $environment, ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\MostRecentInstance\Location $location, ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\MostRecentInstance\Message $message, string $ref, string $state)
3737
{
3838
$this->analysis_key = $analysis_key;
3939
$this->classifications = $classifications;

src/OpenAPI/ApiGitHubCom/Schema/ApiOverview.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ final class ApiOverview
6161
* @param array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ApiOverview\Actions> $actions
6262
* @param array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ApiOverview\Dependabot> $dependabot
6363
*/
64-
public function __construct(bool $verifiable_password_authentication, object $ssh_key_fingerprints, array $ssh_keys, array $hooks, array $web, array $api, array $git, array $packages, array $pages, array $importer, array $actions, array $dependabot)
64+
public function __construct(bool $verifiable_password_authentication, ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\ApiOverview\SshKeyFingerprints $ssh_key_fingerprints, array $ssh_keys, array $hooks, array $web, array $api, array $git, array $packages, array $pages, array $importer, array $actions, array $dependabot)
6565
{
6666
$this->verifiable_password_authentication = $verifiable_password_authentication;
6767
$this->ssh_key_fingerprints = $ssh_key_fingerprints;

src/OpenAPI/ApiGitHubCom/Schema/Artifact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class Artifact
2727
public readonly ?string $expires_at;
2828
public readonly ?string $updated_at;
2929
public readonly ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Artifact\WorkflowRun $workflow_run;
30-
public function __construct(int $id, string $node_id, string $name, int $size_in_bytes, string $url, string $archive_download_url, bool $expired, string $created_at, string $expires_at, string $updated_at, object $workflow_run)
30+
public function __construct(int $id, string $node_id, string $name, int $size_in_bytes, string $url, string $archive_download_url, bool $expired, string $created_at, string $expires_at, string $updated_at, ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Artifact\WorkflowRun $workflow_run)
3131
{
3232
$this->id = $id;
3333
$this->node_id = $node_id;

src/OpenAPI/ApiGitHubCom/Schema/AssignedIssueEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class AssignedIssueEvent
3030
* A GitHub user.
3131
*/
3232
public readonly \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\SimpleUser $assigner;
33-
public function __construct(int $id, string $node_id, string $url, object $actor, string $event, string $commit_id, string $commit_url, string $created_at, object $performed_via_github_app, object $assignee, object $assigner)
33+
public function __construct(int $id, string $node_id, string $url, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\SimpleUser $actor, string $event, string $commit_id, string $commit_url, string $created_at, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Integration $performed_via_github_app, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\SimpleUser $assignee, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\SimpleUser $assigner)
3434
{
3535
$this->id = $id;
3636
$this->node_id = $node_id;

src/OpenAPI/ApiGitHubCom/Schema/AuthenticationToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class AuthenticationToken
2929
/**
3030
* @param array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Repository> $repositories
3131
*/
32-
public function __construct(string $token, string $expires_at, object $permissions, array $repositories, string $single_file, string $repository_selection)
32+
public function __construct(string $token, string $expires_at, ?\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\AuthenticationToken\Permissions $permissions, array $repositories, string $single_file, string $repository_selection)
3333
{
3434
$this->token = $token;
3535
$this->expires_at = $expires_at;

src/OpenAPI/ApiGitHubCom/Schema/Authorization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class Authorization
2929
/**
3030
* @param array<\ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Authorization\Scopes> $scopes
3131
*/
32-
public function __construct(int $id, string $url, array $scopes, string $token, string $token_last_eight, string $hashed_token, object $app, string $note, string $note_url, string $updated_at, string $created_at, string $fingerprint, mixed $user, mixed $installation, string $expires_at)
32+
public function __construct(int $id, string $url, array $scopes, string $token, string $token_last_eight, string $hashed_token, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Authorization\App $app, string $note, string $note_url, string $updated_at, string $created_at, string $fingerprint, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Authorization\User $user, \ApiClients\Client\Github\OpenAPI\ApiGitHubCom\Schema\Authorization\Installation $installation, string $expires_at)
3333
{
3434
$this->id = $id;
3535
$this->url = $url;

0 commit comments

Comments
 (0)