Skip to content

Commit 450ed54

Browse files
Michael Thomasfacebook-github-bot
authored andcommitted
Fix typo in readonly error message
Summary: Did you mean to declaring ... -> Did you mean to declare Reviewed By: madgen Differential Revision: D63753961 fbshipit-source-id: a42e4d560cc6125cb1f5c8895873e688a07cfe8f
1 parent 41ce724 commit 450ed54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hphp/hack/src/typing/tast_check/readonly_check.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ let call
488488
"annotate this typehint as a " ^ suggested_fty_str
489489
(* Otherwise, it's likely from a Rwitness, but we suggest declaring it as readonly *)
490490
else
491-
"declaring this as a `readonly` function"
491+
"declare this as a `readonly` function"
492492
in
493493
Typing_error_utils.add_typing_error
494494
~env:(Tast_env.tast_env_as_typing_env env)

hphp/hack/test/typecheck/readonly/call.php.imp_pess_exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ This function is readonly, so it must be marked readonly at declaration time to
99
ERROR: File "call.php", line 29, characters 4-12:
1010
This function is readonly, so it must be marked readonly at declaration time to be called. (Typing[4428])
1111
File "call.php", line 4, characters 10-27:
12-
Did you mean to declaring this as a `readonly` function?
12+
Did you mean to declare this as a `readonly` function?

0 commit comments

Comments
 (0)