1--TEST-- 2Return type and Reflection::export() 3--FILE-- 4<?php 5 6class A { 7 function foo(array $a): array { 8 return $a; 9 } 10} 11 12echo new ReflectionClass("A"); 13?> 14--EXPECTF-- 15Class [ <user> class A ] { 16 @@ %sreflection001.php 3-7 17 18 - Constants [0] { 19 } 20 21 - Static properties [0] { 22 } 23 24 - Static methods [0] { 25 } 26 27 - Properties [0] { 28 } 29 30 - Methods [1] { 31 Method [ <user> public method foo ] { 32 @@ %sreflection001.php 4 - 6 33 34 - Parameters [1] { 35 Parameter #0 [ <required> array $a ] 36 } 37 - Return [ array ] 38 } 39 } 40} 41