1--TEST--
2The SensitiveParameter attribute suppresses the single sensitive argument for arrow functions.
3--FILE--
4<?php
5
6$test = fn (#[SensitiveParameter] $sensitive) => (new Exception)->getTrace();
7
8var_dump($test('sensitive'));
9
10?>
11--EXPECTF--
12array(1) {
13  [0]=>
14  array(4) {
15    ["file"]=>
16    string(%d) "%ssensitive_parameter_arrow_function.php"
17    ["line"]=>
18    int(5)
19    ["function"]=>
20    string(9) "{closure}"
21    ["args"]=>
22    array(1) {
23      [0]=>
24      object(SensitiveParameterValue)#%d (0) {
25      }
26    }
27  }
28}
29