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 11, 2024
1 parent 45fe96e commit 33b3a2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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,
);
2 changes: 1 addition & 1 deletion tests/Unit/Http/AttachmentDownloadResponseTest.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
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 33b3a2e

Please sign in to comment.