Skip to content

Commit 350e05a

Browse files
committed
style: fix var name error
1 parent 8f3b8c5 commit 350e05a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Obj/ObjectHelper.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ class ObjectHelper
6161
* @template T object
6262
* @param T $object An object instance
6363
* @param array $config
64-
* @param bool $toCaml
64+
* @param bool $toCamel
6565
*
6666
* @return T
6767
*/
68-
public static function init(object $object, array $config, bool $toCaml = false): object
68+
public static function init(object $object, array $config, bool $toCamel = false): object
6969
{
7070
foreach ($config as $property => $value) {
7171
if (is_numeric($property)) {
7272
continue;
7373
}
7474

75-
if ($toCaml) {
75+
if ($toCamel) {
7676
$property = StringHelper::camelCase($property, false, '_');
7777
}
7878

0 commit comments

Comments
 (0)