We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd27cc1 commit b1e499aCopy full SHA for b1e499a
src/Filter/UpperCaseFirst.php
@@ -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 UpperCaseFirst extends AbstractFilter
14
+{
15
+ public function __invoke(string $value): string
16
+ {
17
+ return \ucfirst(($this->filter)($value));
18
+ }
19
+}
0 commit comments