Skip to content

Commit

Permalink
remove the last of the __Rx
Browse files Browse the repository at this point in the history
Summary: onthetin

Reviewed By: viratyosin

Differential Revision: D26345685

fbshipit-source-id: 26805831c9bdb7b2a0afacfcc40d56dd60c1f73e
  • Loading branch information
DavidSnider authored and facebook-github-bot committed Feb 10, 2021
1 parent a7a4ad7 commit 4e81237
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion src/Ref.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@
* to avoid this class.
*/
final class Ref<T> {
<<__RxShallow>>
public function __construct(public T $value)[rx_shallow] {}
}
2 changes: 0 additions & 2 deletions src/dict/transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ function chunk<Tk as arraykey, Tv>(
* Time complexity: O(n)
* Space complexity: O(n)
*/
<<__RxShallow, __AtMostRxAsArgs>>
function count_values<Tv as arraykey>(
<<__MaybeMutable, __OnlyRxIfImpl(\HH\Rx\Traversable::class)>>
Traversable<Tv> $values,
)[rx_shallow]: dict<Tv, int> {
$result = dict[];
Expand Down
2 changes: 0 additions & 2 deletions src/math/compute.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ 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()`.
*/
<<__RxLocal>>
function base_convert(string $value, int $from_base, int $to_base)[rx_local]: string {
invariant(
$value !== '',
Expand Down Expand Up @@ -307,7 +306,6 @@ function tan(num $arg)[]: float {
*
* To base convert a string to an int, see `Math\from_base()`.
*/
<<__RxShallow>>
function to_base(int $number, int $to_base)[rx_shallow]: string {
invariant(
$to_base >= 2 && $to_base <= 36,
Expand Down
7 changes: 1 addition & 6 deletions src/str/transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
* - To capitalize all characters, see `Str\uppercase()`.
* - To capitalize all words, see `Str\capitalize_words()`.
*/
<<__RxLocal>>
function capitalize(
string $string,
)[rx_local]: string {
Expand All @@ -39,7 +38,6 @@ function capitalize(
* - To capitalize all characters, see `Str\uppercase()`.
* - To capitalize only the first character, see `Str\capitalize()`.
*/
<<__RxLocal>>
function capitalize_words(
string $string,
string $delimiters = " \t\r\n\f\v",
Expand Down Expand Up @@ -176,7 +174,7 @@ function replace(
* - For multiple case-sensitive searches/replacements, see `Str\replace_every()`.
* - For multiple case-insensitive searches/replacements, see `Str\replace_every_ci()`.
*/
<<__Rx>> // not pure: str_ireplace uses global locale for capitalization
// not pure: str_ireplace uses global locale for capitalization
function replace_ci(
string $haystack,
string $needle,
Expand Down Expand Up @@ -241,7 +239,6 @@ function replace_every(
* - For multiple case-sensitive searches/replacements, see `Str\replace_every()`.
* - For not having new values searched again, see `Str\replace_every_nonrecursive_ci()`.
*/
<<__Rx>>
function replace_every_ci(
string $haystack,
KeyedContainer<string, string> $replacements,
Expand Down Expand Up @@ -272,7 +269,6 @@ function replace_every_ci(
*
* - For having new values searched again, see `Str\replace_every()`.
*/
<<__Rx>>
function replace_every_nonrecursive(
string $haystack,
KeyedContainer<string, string> $replacements,
Expand Down Expand Up @@ -307,7 +303,6 @@ function replace_every_nonrecursive(
*
* - For having new values searched again, see `Str\replace_every_ci()`.
*/
<<__Rx>>
function replace_every_nonrecursive_ci(
string $haystack,
KeyedContainer<string, string> $replacements,
Expand Down

0 comments on commit 4e81237

Please sign in to comment.