Skip to content

Commit

Permalink
Remove rx from HSL
Browse files Browse the repository at this point in the history
Summary: Rx is dead.

Reviewed By: fredemmott

Differential Revision: D34555209

fbshipit-source-id: 71d6782b84bdec93f35b25838f42c6ba40a91d19
  • Loading branch information
oulgen authored and facebook-github-bot committed Mar 1, 2022
1 parent a959083 commit cb402d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/math/compute.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function abs<T as num>(T $number)[]: T {
* - To convert a string in some base to an int, see `Math\from_base()`.
* - To convert an int to a string in some base, see `Math\to_base()`.
*/
function base_convert(string $value, int $from_base, int $to_base)[rx_local]: string {
function base_convert(string $value, int $from_base, int $to_base): string {
invariant(
$value !== '',
'Unexpected empty string, expected number in base %d',
Expand Down Expand Up @@ -254,7 +254,7 @@ function tan(num $arg)[]: float {
*
* To base convert a string to an int, see `Math\from_base()`.
*/
function to_base(int $number, int $to_base)[rx_shallow]: string {
function to_base(int $number, int $to_base): string {
invariant(
$to_base >= 2 && $to_base <= 36,
'Expected $to_base to be between 2 and 36, got %d',
Expand Down
8 changes: 4 additions & 4 deletions src/str/transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function replace_ci(
string $haystack,
string $needle,
string $replacement,
)[rx]: string {
): string {
return _Str\replace_ci_l($haystack, $needle, $replacement);
}

Expand Down Expand Up @@ -230,7 +230,7 @@ function replace_every(
function replace_every_ci(
string $haystack,
KeyedContainer<string, string> $replacements,
)[rx]: string {
): string {
return _Str\replace_every_ci_l($haystack, dict($replacements));
}

Expand All @@ -249,7 +249,7 @@ function replace_every_ci(
function replace_every_nonrecursive(
string $haystack,
KeyedContainer<string, string> $replacements,
)[rx]: string {
): string {
return _Str\replace_every_nonrecursive_l($haystack, dict($replacements));
}

Expand All @@ -275,7 +275,7 @@ function replace_every_nonrecursive(
function replace_every_nonrecursive_ci(
string $haystack,
KeyedContainer<string, string> $replacements,
)[rx]: string {
): string {
return _Str\replace_every_nonrecursive_ci_l($haystack, dict($replacements));
}

Expand Down
8 changes: 4 additions & 4 deletions src/str/transform_l.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function replace_ci_l(
string $haystack,
string $needle,
string $replacement,
)[rx]: string {
): string {
return _Str\replace_ci_l($haystack, $needle, $replacement, $locale);
}

Expand Down Expand Up @@ -201,7 +201,7 @@ function replace_every_ci_l(
Locale\Locale $locale,
string $haystack,
KeyedContainer<string, string> $replacements,
)[rx]: string {
): string {
return _Str\replace_every_ci_l($haystack, dict($replacements), $locale);
}

Expand All @@ -224,7 +224,7 @@ function replace_every_nonrecursive_l(
Locale\Locale $locale,
string $haystack,
KeyedContainer<string, string> $replacements,
)[rx]: string {
): string {
return _Str\replace_every_nonrecursive_l($haystack, dict($replacements), $locale);
}

Expand Down Expand Up @@ -256,7 +256,7 @@ function replace_every_nonrecursive_ci_l(
Locale\Locale $locale,
string $haystack,
KeyedContainer<string, string> $replacements,
)[rx]: string {
): string {
return _Str\replace_every_nonrecursive_ci_l($haystack, dict($replacements), $locale);
}

Expand Down

0 comments on commit cb402d7

Please sign in to comment.