forked from facebook/hhvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Better type hint error message
Summary: When user forget to turn on runtime option EnableHipHopSyntax, the type hint error message can be confusing. For example, [] cat /tmp/t.php <?php function foo(int $p = 1) {} [] hphpi/hphpi /tmp/t.php HipHop Fatal error: Default value with a class type hint can only be NULL in /tmp/t.php on line 2 I made some changes to make the type hint error message more friendly. So after the change: [] hphpi/hphpi /tmp/t.php HipHop Fatal error: HipHop type hint int is not enabled in /tmp/t.php on line 2 Test Plan: make fast_tests Reviewed By: qigao Reviewers: qigao, mwilliams CC: hphp-diffs@lists, ps, mwilliams, qigao Revert Plan: Tags: - begin *PUBLIC* platform impact section - Bugzilla: # - end platform impact - Differential Revision: 268072
- Loading branch information
myang
authored and
macvicar
committed
Jun 16, 2011
1 parent
2d01b6f
commit 13f43a3
Showing
6 changed files
with
95 additions
and
33 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
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
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