Skip to content

Commit

Permalink
refactor: Apply PHP7.3 sets
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Sep 17, 2024
1 parent bfaddda commit 3a2cefa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
phpunit: true,
)
->withPhpSets(
php71: true,
php73: true,
);
5 changes: 1 addition & 4 deletions tests/Unit/Http/AttachmentDownloadResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
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());
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Http/ProxyDownloadResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function testIt($content, $filename, $contentType) {
$this->assertArrayHasKey('Content-Type', $headers);
$this->assertEquals($contentType, $headers['Content-Type']);
$this->assertArrayHasKey('Content-Disposition', $headers);
$pos = strpos($headers['Content-Disposition'], $filename);
$pos = strpos($headers['Content-Disposition'], (string)$filename);
$this->assertTrue($pos > 0);
}

Expand Down

0 comments on commit 3a2cefa

Please sign in to comment.