public function assertNumber($value) { if ($value[0] !== Type::T_NUMBER) { $this->throwError('expecting number'); } return $value[1]; }