Skip to content

Commit 1e56786

Browse files
committed
Add filter for lower case first - Close #6
1 parent b1e499a commit 1e56786

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Filter/LowerCaseFirst.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* @see https://github.com/open-code-modeling/php-filter for the canonical source repository
5+
* @copyright https://github.com/open-code-modeling/php-filter/blob/master/COPYRIGHT.md
6+
* @license https://github.com/open-code-modeling/php-filter/blob/master/LICENSE.md MIT License
7+
*/
8+
9+
declare(strict_types=1);
10+
11+
namespace OpenCodeModeling\Filter\Filter;
12+
13+
final class LowerCaseFirst extends AbstractFilter
14+
{
15+
public function __invoke(string $value): string
16+
{
17+
return \lcfirst(($this->filter)($value));
18+
}
19+
}

0 commit comments

Comments
 (0)