Skip to content

Commit c81f12f

Browse files
authored
Fix allow_unknown_fields to allowUnknownFields
1 parent cdd15e7 commit c81f12f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/Rules/RestrictImplicitDependencyUsage.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ private function getInstalledJson(): array
233233
'name' => Type\string(),
234234
'autoload' => Type\optional(Type\shape([
235235
'psr-4' => Type\optional(Type\dict(Type\string(), Type\union(Type\string(), Type\vec(Type\string())))),
236-
], allow_unknown_fields: true)),
236+
], allowUnknownFields: true)),
237237
'replace' => Type\optional(Type\dict(Type\string(), Type\string())),
238-
], allow_unknown_fields: true)),
239-
], allow_unknown_fields: true)->assert(decode(read(basepath() . '/vendor/composer/installed.json')));
238+
], allowUnknownFields: true)),
239+
], allowUnknownFields: true)->assert(decode(read(basepath() . '/vendor/composer/installed.json')));
240240
}
241241

242242
/**
@@ -249,7 +249,7 @@ private function getComposerJson(): array
249249
'require-dev' => Type\optional(Type\dict(Type\string(), Type\string())),
250250
'autoload' => Type\optional(Type\shape([
251251
'psr-4' => Type\optional(Type\dict(Type\string(), Type\union(Type\string(), Type\vec(Type\string())))),
252-
], allow_unknown_fields: true)),
253-
], allow_unknown_fields: true)->assert(decode(read('composer.json')));
252+
], allowUnknownFields: true)),
253+
], allowUnknownFields: true)->assert(decode(read('composer.json')));
254254
}
255255
}

0 commit comments

Comments
 (0)