Skip to content

Commit edb24e9

Browse files
committed
add test for skip all strings in array_map()
1 parent 1184912 commit edb24e9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector\Fixture;
4+
5+
final class SkipArrayOfStringsOnArrayMap
6+
{
7+
public function foo(string $name)
8+
{
9+
$parts = explode('_', $name);
10+
return implode(
11+
'',
12+
array_map(
13+
fn ($part): string =>
14+
strtolower($part),
15+
$parts
16+
)
17+
);
18+
}
19+
}

0 commit comments

Comments
 (0)