Skip to content

Commit e934f9c

Browse files
janofacebook-github-bot
authored andcommitted
Change default of EnforceGenericsUB to 2
Summary: Fully enforce upper bounds for generic types by default, in preparation for removal of the option. Reviewed By: ricklavoie Differential Revision: D52947697 fbshipit-source-id: f9623feef7196afd1eae20375c1a0a50c243cca9
1 parent 7c89e6b commit e934f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hphp/runtime/base/runtime-option.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ struct RuntimeOption {
865865
/* Enables enforcing upper-bounds for generic types
866866
1 => warning, 2 => error
867867
*/ \
868-
F(int32_t, EnforceGenericsUB, 1) \
868+
F(int32_t, EnforceGenericsUB, 2) \
869869
/* WarnOnTooManyArguments:
870870
* 0 -> no warning, 1 -> warning, 2 -> exception
871871
*/ \

0 commit comments

Comments
 (0)