-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve shape field access error message
Summary: Previously we discussed "constant strings" which were being confused with class constants. Prefer "string literal" terminology. Reviewed By: periodic1236 Differential Revision: D39044065 fbshipit-source-id: 20bf743f08137e97d9e14573735777cff03c8b9d
- Loading branch information
1 parent
d17aaaa
commit c2b2433
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
File "shape_key_exists8.php", line 6, characters 30-35: | ||
Was expecting a constant string, class constant, or int (for shape access) (Typing[4051]) | ||
Shape access requires a string literal, integer literal, or a class constant (Typing[4051]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
File "shape_remove_key5.php", line 13, characters 31-32: | ||
Was expecting a constant string, class constant, or int (for shape access) (Typing[4051]) | ||
Shape access requires a string literal, integer literal, or a class constant (Typing[4051]) |