From f31d25bfa333f934271fdd478a72910256ea3407 Mon Sep 17 00:00:00 2001 From: jjroelofs <904576+jjroelofs@users.noreply.github.com> Date: Tue, 30 Jun 2026 13:15:17 +0200 Subject: [PATCH] fix: use ClientInterface::request() instead of shorthand post() GuzzleHttp\ClientInterface does not define post(); that method only exists on the concrete Client class. PHPStan correctly flags this as method.notFound. Use request('POST', ...) which is part of the interface contract. --- src/Service/EndpointChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/EndpointChecker.php b/src/Service/EndpointChecker.php index 4086aed..5779e20 100644 --- a/src/Service/EndpointChecker.php +++ b/src/Service/EndpointChecker.php @@ -308,7 +308,7 @@ protected function probe(string $url, ?string $host_header = NULL): array { } try { - $response = $this->httpClient->post($url, $options); + $response = $this->httpClient->request('POST', $url, $options); } catch (\Throwable $e) { // Transport-layer failure (DNS / TCP / TLS / timeout); check() will