Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 8d9eb43

Browse files
committed
qa: incorporate review feedback for FileInformationTraitTest
Incorporates all feedback from @webimpress
1 parent 8108e63 commit 8d9eb43

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

test/File/FileInformationTraitTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@
1414
use ZendTest\Validator\File\TestAsset\FileInformation;
1515
use Zend\Validator\Exception\InvalidArgumentException;
1616

17-
/**
18-
* @group Zend_Validator
19-
*/
2017
class FileInformationTraitTest extends TestCase
2118
{
22-
/** @var ObjectProphecy */
19+
/** @var ObjectProphecy|StreamInterface */
2320
public $stream;
2421

2522
/** @var ObjectProphecy */

test/File/TestAsset/FileInformation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class FileInformation
2020
* Returns array if the procedure is identified
2121
*
2222
* @param string|array|object $value Filename to check
23-
* @param array $file File data from \Zend\File\Transfer\Transfer (optional)
23+
* @param null|array $file File data (when using legacy Zend_File_Transfer API)
2424
* @param bool $hasType Return with filetype (optional)
2525
* @param bool $basename Return with basename - is calculated from location path (optional)
2626
* @return array
2727
*/
2828
public function checkFileInformation(
2929
$value,
30-
$file = null,
30+
array $file = null,
3131
$hasType = false,
3232
$hasBasename = false
3333
) {

0 commit comments

Comments
 (0)