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