|
10 | 10 | use Lkrms\Support\PhpDoc\PhpDoc; |
11 | 11 | use Lkrms\Support\PhpDoc\PhpDocTemplateTag; |
12 | 12 | use Lkrms\Support\Introspector; |
13 | | -use Lkrms\Utility\Convert; |
14 | 13 | use Lkrms\Utility\Pcre; |
15 | 14 | use Lkrms\Utility\Reflect; |
| 15 | +use Lkrms\Utility\Str; |
16 | 16 | use Lkrms\Utility\Test; |
17 | 17 | use Closure; |
18 | 18 | use ReflectionMethod; |
@@ -175,7 +175,7 @@ protected function run(string ...$args) |
175 | 175 | $writable = $introspector->getWritableProperties(); |
176 | 176 | $writable = array_combine( |
177 | 177 | array_map( |
178 | | - fn(string $name) => Convert::toCamelCase($name), |
| 178 | + fn(string $name) => Str::toCamelCase($name), |
179 | 179 | $writable |
180 | 180 | ), |
181 | 181 | $writable |
@@ -210,7 +210,7 @@ protected function run(string ...$args) |
210 | 210 |
|
211 | 211 | if ($_constructor = $this->InputClass->getConstructor()) { |
212 | 212 | foreach ($_constructor->getParameters() as $_param) { |
213 | | - $name = Convert::toCamelCase($_param->getName()); |
| 213 | + $name = Str::toCamelCase($_param->getName()); |
214 | 214 | unset($writable[$name]); |
215 | 215 | $_params[$name] = $_param; |
216 | 216 | // Variables can't be passed to __call by reference, so this |
@@ -244,7 +244,7 @@ protected function run(string ...$args) |
244 | 244 | continue; |
245 | 245 | } |
246 | 246 | $_name = $_property->getName(); |
247 | | - $name = Convert::toCamelCase($_name); |
| 247 | + $name = Str::toCamelCase($_name); |
248 | 248 | $_allProperties[$name] = $_property; |
249 | 249 | if (array_key_exists($_name, $defaults)) { |
250 | 250 | $_defaultProperties[$name] = $defaults[$_name]; |
@@ -541,8 +541,8 @@ protected function run(string ...$args) |
541 | 541 | $_method->isStatic() || |
542 | 542 | strpos($name, '__') === 0 || |
543 | 543 | isset($phpDoc->TagsByName['deprecated']) || |
544 | | - in_array(Convert::toCamelCase($name), $names) || |
545 | | - in_array(Convert::toCamelCase(Pcre::replace('/^(with|get)/i', '', $name)), $names) || |
| 544 | + in_array(Str::toCamelCase($name), $names) || |
| 545 | + in_array(Str::toCamelCase(Pcre::replace('/^(with|get)/i', '', $name)), $names) || |
546 | 546 | in_array($name, $this->Skip) || |
547 | 547 | ($this->Forward !== [] && !in_array($name, $this->Forward))) { |
548 | 548 | continue; |
|
0 commit comments