Skip to content

Commit c47ecd6

Browse files
authored
Merge pull request #13 from melbings/master
Allow "mixed" variable type
2 parents 41f84c5 + 2e0eb19 commit c47ecd6

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/PhpDocReader/PhpDocReader.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class PhpDocReader
3333
'object',
3434
'callable',
3535
'resource',
36+
'mixed',
3637
);
3738

3839
/**

tests/FixturesPrimitiveTypes/Class1.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class Class1
5959
*/
6060
public $resource;
6161

62+
/**
63+
* @var mixed
64+
*/
65+
public $mixed;
66+
6267
/**
6368
* @param bool $bool
6469
* @param boolean $boolean
@@ -71,6 +76,7 @@ class Class1
7176
* @param object $object
7277
* @param callable $callable
7378
* @param resource $resource
79+
* @param mixed $mixed
7480
*/
7581
public function foo(
7682
$bool,
@@ -83,7 +89,8 @@ public function foo(
8389
$array,
8490
$object,
8591
$callable,
86-
$resource
92+
$resource,
93+
$mixed
8794
) {
8895
}
8996
}

tests/PrimitiveTypesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function typeProvider()
4646
'object' => array('object'),
4747
'callable' => array('callable'),
4848
'resource' => array('resource'),
49+
'mixed' => array('mixed'),
4950
);
5051
}
5152
}

0 commit comments

Comments
 (0)