Skip to content

Commit 189e11a

Browse files
committed
fixed a test failing with PHP 7.1 due to a notice raised by tempnam, see #290
1 parent e255abf commit 189e11a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/Storage/SerializableFileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testSerialization_customTempDir() {
7474

7575
public function testSerialization_customTempDir_nonexistent() {
7676
$serializableFile = new SerializableFile(new UploadedFile(__FILE__, 'my.txt', null, null, null, true));
77-
$processedUploadedFile = $serializableFile->getAsFile('xyz:/');
77+
$processedUploadedFile = @$serializableFile->getAsFile('xyz:/');
7878

7979
$this->assertEquals(realpath(sys_get_temp_dir()), realpath($processedUploadedFile->getPath()));
8080
}

0 commit comments

Comments
 (0)