@@ -183,7 +183,7 @@ public function runOperation(Operation|string $operation, string $path, string|n
183183 Operation::APPLY => $ this ->applyPath ($ path , $ payload , $ query ),
184184 Operation::JSON_PATCH => $ this ->jsonPatchPath ($ path , $ payload , $ query ),
185185 Operation::JSON_MERGE_PATCH => $ this ->jsonMergePatchPath ($ path , $ payload , $ query ),
186- default => $ this ->makeRequest ($ operation-> httpMethod () , $ path , $ payload , $ query ),
186+ default => $ this ->makeRequest ($ operation , $ path , $ payload , $ query ),
187187 };
188188 }
189189
@@ -351,7 +351,7 @@ protected function execPath(
351351 array $ query = ['pretty ' => 1 , 'stdin ' => 1 , 'stdout ' => 1 , 'stderr ' => 1 , 'tty ' => 1 ]
352352 ): mixed {
353353 try {
354- return $ this ->makeRequest (Operation::EXEC -> httpMethod () , $ path , '' , $ query );
354+ return $ this ->makeRequest (Operation::EXEC , $ path , '' , $ query );
355355 } catch (KubernetesAPIException $ e ) {
356356 $ payload = $ e ->getPayload ();
357357
@@ -380,7 +380,7 @@ protected function attachPath(
380380 array $ query = ['pretty ' => 1 , 'stdin ' => 1 , 'stdout ' => 1 , 'stderr ' => 1 , 'tty ' => 1 ]
381381 ): mixed {
382382 try {
383- return $ this ->makeRequest (Operation::ATTACH -> httpMethod () , $ path , '' , $ query );
383+ return $ this ->makeRequest (Operation::ATTACH , $ path , '' , $ query );
384384 } catch (KubernetesAPIException $ e ) {
385385 $ payload = $ e ->getPayload ();
386386
@@ -411,7 +411,7 @@ protected function applyPath(string $path, string $payload, array $query = ['pre
411411 ],
412412 ];
413413
414- return $ this ->makeRequest (Operation::APPLY -> httpMethod () , $ path , $ payload , $ query , $ options );
414+ return $ this ->makeRequest (Operation::APPLY , $ path , $ payload , $ query , $ options );
415415 }
416416
417417 /**
@@ -428,7 +428,7 @@ protected function jsonPatchPath(string $path, string $payload, array $query = [
428428 ],
429429 ];
430430
431- return $ this ->makeRequest (Operation::JSON_PATCH -> httpMethod () , $ path , $ payload , $ query , $ options );
431+ return $ this ->makeRequest (Operation::JSON_PATCH , $ path , $ payload , $ query , $ options );
432432 }
433433
434434 /**
@@ -445,7 +445,7 @@ protected function jsonMergePatchPath(string $path, string $payload, array $quer
445445 ],
446446 ];
447447
448- return $ this ->makeRequest (Operation::JSON_MERGE_PATCH -> httpMethod () , $ path , $ payload , $ query , $ options );
448+ return $ this ->makeRequest (Operation::JSON_MERGE_PATCH , $ path , $ payload , $ query , $ options );
449449 }
450450
451451 /**
0 commit comments