1--TEST--
2ReflectionParameter double construct call
3--FILE--
4<?php
5
6$closure = function (int $x): void {};
7$r = new ReflectionParameter($closure, 'x');
8var_dump($r);
9$r->__construct($closure, 'x');
10var_dump($r);
11$r->__construct('ord', 'character');
12var_dump($r);
13
14?>
15--EXPECT--
16object(ReflectionParameter)#2 (1) {
17  ["name"]=>
18  string(1) "x"
19}
20object(ReflectionParameter)#2 (1) {
21  ["name"]=>
22  string(1) "x"
23}
24object(ReflectionParameter)#2 (1) {
25  ["name"]=>
26  string(9) "character"
27}
28