public function setTypeHint($type) { $this->type = $this->normalizeType($type); if ($this->type === 'void') { throw new \LogicException('Parameter type cannot be void'); } return $this; }