File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments