diff --git a/Tests/VariableAnalysisSniff/fixtures/ArrowFunctionFixture.php b/Tests/VariableAnalysisSniff/fixtures/ArrowFunctionFixture.php index 9a16dc4..f23ac6b 100644 --- a/Tests/VariableAnalysisSniff/fixtures/ArrowFunctionFixture.php +++ b/Tests/VariableAnalysisSniff/fixtures/ArrowFunctionFixture.php @@ -166,3 +166,8 @@ function arrowFunctionWithQuotes($allowedReferrers) { && $permissionName !== CustomPermission::ALL_CONFIG ); } + +function arrowFunctionNestedAsExpressionWithNoWarnings() { + $ids = fn($posts) => array_map(fn($post) => $post->id, $posts); + echo $ids([]); +}