CraftingManagerFromDataHelper: Fix parameter name typo (#5870)

due to named parameters, this change must target PM6
This commit is contained in:
IvanCraft623 2023-07-19 05:05:52 -05:00 committed by GitHub
parent f2f30143b0
commit 74cfd687d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,10 +152,10 @@ final class CraftingManagerFromDataHelper{
* @return mixed[]
*
* @phpstan-template TData of object
* @phpstan-param class-string<TData> $modelCLass
* @phpstan-param class-string<TData> $modelClass
* @phpstan-return list<TData>
*/
public static function loadJsonArrayOfObjectsFile(string $filePath, string $modelCLass) : array{
public static function loadJsonArrayOfObjectsFile(string $filePath, string $modelClass) : array{
$recipes = json_decode(Filesystem::fileGetContents($filePath));
if(!is_array($recipes)){
throw new SavedDataLoadingException("$filePath root should be an array, got " . get_debug_type($recipes));
@ -166,7 +166,7 @@ final class CraftingManagerFromDataHelper{
$mapper->bExceptionOnUndefinedProperty = true;
$mapper->bExceptionOnMissingData = true;
return self::loadJsonObjectListIntoModel($mapper, $modelCLass, $recipes);
return self::loadJsonObjectListIntoModel($mapper, $modelClass, $recipes);
}
/**