We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f3b8c5 commit 350e05aCopy full SHA for 350e05a
src/Obj/ObjectHelper.php
@@ -61,18 +61,18 @@ class ObjectHelper
61
* @template T object
62
* @param T $object An object instance
63
* @param array $config
64
- * @param bool $toCaml
+ * @param bool $toCamel
65
*
66
* @return T
67
*/
68
- public static function init(object $object, array $config, bool $toCaml = false): object
+ public static function init(object $object, array $config, bool $toCamel = false): object
69
{
70
foreach ($config as $property => $value) {
71
if (is_numeric($property)) {
72
continue;
73
}
74
75
- if ($toCaml) {
+ if ($toCamel) {
76
$property = StringHelper::camelCase($property, false, '_');
77
78
0 commit comments