Skip to content

Commit 23f395d

Browse files
committed
make phpstan happy...
1 parent 4c58424 commit 23f395d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

subdomains/src/Models/CloudflareDomain.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function subdomains(): HasMany
3636
/** @throws Exception */
3737
public function fetchCloudflareId(): void
3838
{
39+
// @phpstan-ignore staticMethod.notFound
3940
$response = Http::cloudflare()->get('zones', [
4041
'name' => $this->name,
4142
])->json();

subdomains/src/Models/Subdomain.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ public function upsertOnCloudflare(): void
102102
}
103103

104104
if ($this->cloudflare_id) {
105+
// @phpstan-ignore staticMethod.notFound
105106
$response = Http::cloudflare()->patch("zones/{$this->domain->cloudflare_id}/dns_records/$this->cloudflare_id", $payload)->json();
106107
} else {
108+
// @phpstan-ignore staticMethod.notFound
107109
$response = Http::cloudflare()->post("zones/{$this->domain->cloudflare_id}/dns_records", $payload)->json();
108110

109111
if ($response['success']) {
@@ -125,6 +127,7 @@ public function upsertOnCloudflare(): void
125127
protected function deleteOnCloudflare(): void
126128
{
127129
if ($this->cloudflare_id) {
130+
// @phpstan-ignore staticMethod.notFound
128131
Http::cloudflare()->delete("zones/{$this->domain->cloudflare_id}/dns_records/$this->cloudflare_id");
129132
}
130133
}

0 commit comments

Comments
 (0)