|
@@ -62,7 +62,7 @@ |
|
|
block discarded – undo |
|
62
|
62
|
public static function factory(Compiler $compiler, Coerce $coerce, array $options, array $value) |
|
63
|
63
|
{ |
|
64
|
64
|
$nameParts = explode('_', $value[0]); |
|
65
|
|
- $camelCase = array_reduce($nameParts, function ($carry, $item) { |
|
|
65
|
+ $camelCase = array_reduce($nameParts, function($carry, $item) { |
|
66
|
66
|
return $carry . ucfirst($item); |
|
67
|
67
|
}, ''); |
|
68
|
68
|
$valueClassName = 'LesserPhp\Compiler\Value\\' . $camelCase . 'Value'; |
Please login to merge, or discard this patch.