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