You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<<__Memoize>>
functionlife(): int { return42; }
// Becomes
@__Memoizefunctionlife(): int { return42; }
The typechecker option disallow_silence can be enabled to ban @ error suppression.
The typechecker option allow_new_attribute_syntax can be enabled to allow @Attribute support.
The runtime option hhvm.hack.lang.allow_new_attribute_syntax can be enabled to enable @Attribute support at runtime.
Hack OSS libs have typechecked with disallow_silence enabled since November of 2019. It has not been mentioned on the blog yet, so private codebases may very well still contain a lot of @fopen(__FILE__) code.
@has been reserved for new attribute syntax.The typechecker option
disallow_silencecan be enabled to ban@error suppression.The typechecker option
allow_new_attribute_syntaxcan be enabled to allow@Attributesupport.The runtime option
hhvm.hack.lang.allow_new_attribute_syntaxcan be enabled to enable@Attributesupport at runtime.Hack OSS libs have typechecked with
disallow_silenceenabled since November of 2019. It has not been mentioned on the blog yet, so private codebases may very well still contain a lot of@fopen(__FILE__)code.