-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathTypeHintUnitTest.1.inc.fixed
More file actions
56 lines (47 loc) · 1.05 KB
/
TypeHintUnitTest.1.inc.fixed
File metadata and controls
56 lines (47 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace Beakman;
class Foo
{
/** @var array<string> */
protected $convertToGeneric;
/** @var \Generator<int>|array<string>|class-string<\Cake\I18n\Number>|null $testVar2 */
protected $sortGenerics;
/** @var array|array<int, string>|array{0: string, 1: int}|string */
protected $sortArrayShape
/** @var \CustomClass|\Closure|\Generator|\ArrayObject|\ArrayAccess|\Traversable|\Stringable|\Countable|string */
protected $sortSpecificClassesLast
/**
* @param \Test|\Closure|mixed|array<string|int>|string|int|false $test
* @return string|int|void
*/
public function testFunctionAnotations()
{
}
/**
* @param $test
* @return void
*/
public function testNoParamTypeHint(string $test)
{
}
}
function test()
{
/** @var string|float|int|null */
$testInlineVar;
}
/**
* @param (Type1&Type2)|null $param
* @return Type1&Type2
*/
function intersection($param)
{
}
/**
* Void must be last, after null.
*
* @return int|null|void
*/
function voidAfterNull()
{
}