Handle this typehints
[hiphop-php.git] / hphp / test / quick / pgo1.php
blobecaf25390b82377ae224c7f8d8dcf277435f377a
1 <?hh
4 class Repro {
5 private $propStr;
6 private $propInt = 5;
8 public function __construct($pn) {
9 $this->propStr = $pn;
12 final public function getPropStr() {
13 return $this->propStr;
16 final public function repro($user_id) {
17 static $staticArr = array();
18 $key = $this->getPropStr() . (string)$this->propInt;
19 if (!(isset($staticArr[$key]))) {
20 $staticArr[$key] = array();
25 $rd = new Repro("proj");
27 foreach (range(1,1000) as $i) {
28 $rd->repro(0);
31 var_dump($rd);