name, $this->signature, $this->attributes->forCallable($callable), $this->fileName, $this->class, $this->isStatic, $this->isClosure, $this->parameters->forCallable($callable), $this->returnType ); } public function assignGenerics(Generics $generics): self { if ($generics->items === []) { return $this; } return new self( $this->name, $this->signature, $this->attributes, $this->fileName, $this->class, $this->isStatic, $this->isClosure, $this->parameters->assignGenerics($generics), TypeHelper::assignVacantTypes($this->returnType, $generics->items), ); } }