Skip to content

Commit 4e0dc02

Browse files
committed
fix: remove redundant string cast on getHeaderLine return value
getHeaderLine() already returns string per PSR-7; Psalm flags the (string) cast as RedundantCast. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent b7f0f07 commit 4e0dc02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NextcloudApiContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public function theResponseShouldHaveStatusCode(string $code): void {
361361

362362
#[Given('the response header :header should contain :value')]
363363
public function theResponseHeaderShouldContain(string $header, string $value): void {
364-
$actual = strtolower((string)$this->response->getHeaderLine($header));
364+
$actual = strtolower($this->response->getHeaderLine($header));
365365
Assert::assertStringContainsString(strtolower($value), $actual, sprintf('Response header "%s" does not contain "%s"', $header, $value));
366366
}
367367

0 commit comments

Comments
 (0)