Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Small type refinements for 4.0
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #33

Reviewed By: kmeht

Differential Revision: D14006956

Pulled By: kmeht

fbshipit-source-id: 65a84d31f18ca602712a59e14584426aabc1ece6
  • Loading branch information
fredemmott authored and facebook-github-bot committed Feb 8, 2019
1 parent 382c646 commit b13df3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/str/utf8/transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function lowercase(string $string): string {
function from_encoding(string $string, Encoding $encoding): string {
/* HH_IGNORE_ERROR[2049] __PHPStdLib */
/* HH_IGNORE_ERROR[4107] __PHPStdLib */
return \mb_convert_encoding($string, Encoding::UTF8, $encoding);
return \mb_convert_encoding($string, Encoding::UTF8 as string, $encoding);
}

/**
Expand All @@ -50,7 +50,7 @@ function from_encoding(string $string, Encoding $encoding): string {
function to_encoding(string $string, Encoding $encoding): string {
/* HH_IGNORE_ERROR[2049] __PHPStdLib */
/* HH_IGNORE_ERROR[4107] __PHPStdLib */
return \mb_convert_encoding($string, $encoding, Encoding::UTF8);
return \mb_convert_encoding($string, $encoding as string, Encoding::UTF8);
}

type TConvertKanaOption = shape(
Expand Down

0 comments on commit b13df3f

Please sign in to comment.