Skip to content

Commit 58a068f

Browse files
loks0nclaude
andcommitted
Fix K8sScale::create() return type to static
PHP 8.5 enforces covariant return type compatibility strictly. K8sScale overrode create() with K8sResource instead of static, causing a fatal error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 54eec00 commit 58a068f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Kinds/K8sScale.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function refreshOriginal(array $query = ['pretty' => 1]): static
8989
* @throws KubernetesAPIException
9090
*/
9191
#[\Override]
92-
public function create(array $query = ['pretty' => 1]): K8sResource
92+
public function create(array $query = ['pretty' => 1]): static
9393
{
9494
return $this->cluster
9595
->setResourceClass(get_class($this))

0 commit comments

Comments
 (0)