@@ -36,38 +36,38 @@ function testGetAttributes(
36
36
$ classStr = $ reflectionClass ->getAttributes ($ str );
37
37
$ classNonsense = $ reflectionClass ->getAttributes ("some random string " );
38
38
39
- assertType ('array <ReflectionAttribute<object>> ' , $ classAll );
40
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ classAbc1 );
41
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ classAbc2 );
42
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ classGCN );
43
- assertType ('array <ReflectionAttribute<object>> ' , $ classCN );
44
- assertType ('array <ReflectionAttribute<object>> ' , $ classStr );
45
- assertType ('array <ReflectionAttribute<*ERROR*>> ' , $ classNonsense );
39
+ assertType ('list <ReflectionAttribute<object>> ' , $ classAll );
40
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ classAbc1 );
41
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ classAbc2 );
42
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ classGCN );
43
+ assertType ('list <ReflectionAttribute<object>> ' , $ classCN );
44
+ assertType ('list <ReflectionAttribute<object>> ' , $ classStr );
45
+ assertType ('list <ReflectionAttribute<*ERROR*>> ' , $ classNonsense );
46
46
47
47
$ methodAll = $ reflectionMethod ->getAttributes ();
48
48
$ methodAbc = $ reflectionMethod ->getAttributes (Abc::class);
49
- assertType ('array <ReflectionAttribute<object>> ' , $ methodAll );
50
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ methodAbc );
49
+ assertType ('list <ReflectionAttribute<object>> ' , $ methodAll );
50
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ methodAbc );
51
51
52
52
$ paramAll = $ reflectionParameter ->getAttributes ();
53
53
$ paramAbc = $ reflectionParameter ->getAttributes (Abc::class);
54
- assertType ('array <ReflectionAttribute<object>> ' , $ paramAll );
55
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ paramAbc );
54
+ assertType ('list <ReflectionAttribute<object>> ' , $ paramAll );
55
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ paramAbc );
56
56
57
57
$ propAll = $ reflectionProperty ->getAttributes ();
58
58
$ propAbc = $ reflectionProperty ->getAttributes (Abc::class);
59
- assertType ('array <ReflectionAttribute<object>> ' , $ propAll );
60
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ propAbc );
59
+ assertType ('list <ReflectionAttribute<object>> ' , $ propAll );
60
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ propAbc );
61
61
62
62
$ constAll = $ reflectionClassConstant ->getAttributes ();
63
63
$ constAbc = $ reflectionClassConstant ->getAttributes (Abc::class);
64
- assertType ('array <ReflectionAttribute<object>> ' , $ constAll );
65
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ constAbc );
64
+ assertType ('list <ReflectionAttribute<object>> ' , $ constAll );
65
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ constAbc );
66
66
67
67
$ funcAll = $ reflectionFunction ->getAttributes ();
68
68
$ funcAbc = $ reflectionFunction ->getAttributes (Abc::class);
69
- assertType ('array <ReflectionAttribute<object>> ' , $ funcAll );
70
- assertType ('array <ReflectionAttribute<Issue5511\Abc>> ' , $ funcAbc );
69
+ assertType ('list <ReflectionAttribute<object>> ' , $ funcAll );
70
+ assertType ('list <ReflectionAttribute<Issue5511\Abc>> ' , $ funcAbc );
71
71
}
72
72
73
73
/**
0 commit comments