From 7f85b3811fd6482bd0bd1c1e5ad39258f97c8687 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 16 Sep 2024 20:08:47 +0200 Subject: [PATCH] fixup! refactor: Apply PHP7.3 sets Signed-off-by: Christoph Wurst --- tests/Unit/Http/AttachmentDownloadResponseTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/Unit/Http/AttachmentDownloadResponseTest.php b/tests/Unit/Http/AttachmentDownloadResponseTest.php index c982b9d955..f63ef75886 100644 --- a/tests/Unit/Http/AttachmentDownloadResponseTest.php +++ b/tests/Unit/Http/AttachmentDownloadResponseTest.php @@ -14,18 +14,15 @@ class AttachmentDownloadResponseTest extends TestCase { /** * @dataProvider providesResponseData - * @param $content - * @param $filename - * @param $contentType */ - public function testIt($content, $filename, $contentType) { + public function testIt(string $content, string $filename, string $contentType) { $resp = new AttachmentDownloadResponse($content, $filename, $contentType); $headers = $resp->getHeaders(); $this->assertEquals($content, $resp->render()); $this->assertArrayHasKey('Content-Type', $headers); $this->assertEquals($contentType, $headers['Content-Type']); $this->assertArrayHasKey('Content-Disposition', $headers); - $pos = strpos($headers['Content-Disposition'], (string) $filename); + $pos = strpos($headers['Content-Disposition'], $filename); $this->assertTrue($pos > 0); }