From b63959566c05ce0666f41104bd23dce53efe6b1d Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Fri, 13 Feb 2015 14:17:42 -0800 Subject: [PATCH] Make printf use HH\FormatString instead of FormatString Summary: \FormatString is special, but not actually defined. It's a problem when assume_php=false fixes #4832 Depends On: D1829195 Reviewed By: @elgenie Differential Revision: D1848772 --- hphp/hack/hhi/printf.hhi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hphp/hack/hhi/printf.hhi b/hphp/hack/hhi/printf.hhi index 6599fc5fcb8..dbab1462809 100644 --- a/hphp/hack/hhi/printf.hhi +++ b/hphp/hack/hhi/printf.hhi @@ -84,6 +84,6 @@ interface SprintfQuote { public function format_0x3d() : PlainSprintf; } -function sprintf(FormatString $f, ...) : string; -function printf(FormatString $f, ...) : void; +function sprintf(\HH\FormatString $f, ...) : string; +function printf(\HH\FormatString $f, ...) : void; -- 2.11.4.GIT