Remove legacy reflection API that maps enum --> module
[hiphop-php.git] / hphp / test / slow / gvn-crash-13368505.php
blob5f89a0bfd0d1cb30fe8cdba6c6e15216d846a67a
1 <?hh
3 class XDate extends DateTime
5 public function myFormat()
6 :mixed {
8 $return = parent::format("Y-m-d H:i:s");
9 parent::setTimezone(GvnCrash13368505Php::$gmt);
13 function main() :mixed{
16 $date = new XDate('now', GvnCrash13368505Php::$gmt);
17 $date->myFormat();
19 $date = new XDate('now', GvnCrash13368505Php::$gmt);
20 $date->myFormat();
23 abstract final class GvnCrash13368505Php {
24 public static $gmt;
26 <<__EntryPoint>>
27 function entrypoint_gvncrash13368505(): void {
28 // Copyright 2004-present Facebook. All Rights Reserved.
30 GvnCrash13368505Php::$gmt = new DateTimeZone('GMT');
32 main();
33 echo "DONE\n";