@@ -36,38 +36,38 @@ function testGetAttributes(
3636 $ classStr = $ reflectionClass ->getAttributes ($ str );
3737 $ classNonsense = $ reflectionClass ->getAttributes ("some random string " );
3838
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 );
4646
4747 $ methodAll = $ reflectionMethod ->getAttributes ();
4848 $ 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 );
5151
5252 $ paramAll = $ reflectionParameter ->getAttributes ();
5353 $ 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 );
5656
5757 $ propAll = $ reflectionProperty ->getAttributes ();
5858 $ 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 );
6161
6262 $ constAll = $ reflectionClassConstant ->getAttributes ();
6363 $ 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 );
6666
6767 $ funcAll = $ reflectionFunction ->getAttributes ();
6868 $ 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 );
7171}
7272
7373/**
0 commit comments