Skip to content

Commit 21c31ee

Browse files
committed
stan
1 parent 9081300 commit 21c31ee

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.cursor/commands/fix-stan.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use `composer stan --no-progress` to see the PHPStan failures, and then fix them.

src/LLM/Data/Messages/Content/AudioContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function variables(): array
2929
#[Override]
3030
public function replaceVariables(array $variables): static
3131
{
32-
return new static(
32+
return new self(
3333
$this->getCompiler()->compile($this->base64Data, $variables),
3434
$this->format,
3535
);

src/LLM/Data/Messages/Content/FileContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function variables(): array
3737
#[Override]
3838
public function replaceVariables(array $variables): static
3939
{
40-
return new static(
40+
return new self(
4141
$this->getCompiler()->compile($this->url, $variables),
4242
$this->mimeType,
4343
$this->fileName,

src/LLM/Data/Messages/Content/ImageContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public function variables(): array
3737
#[Override]
3838
public function replaceVariables(array $variables): static
3939
{
40-
return new static($this->getCompiler()->compile($this->url, $variables), $this->mimeType);
40+
return new self($this->getCompiler()->compile($this->url, $variables), $this->mimeType);
4141
}
4242
}

src/LLM/Data/Messages/Content/TextContent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ public function replaceVariables(array $variables): static
2525
return $this;
2626
}
2727

28-
return new static($this->getCompiler()->compile($this->text, $variables));
28+
return new self($this->getCompiler()->compile($this->text, $variables));
2929
}
3030
}

0 commit comments

Comments
 (0)