ReflectionFunction::getClosureThis

Returns this pointer bound to closure

public function getClosureThis(): ?mixed;

Return Values

  • object|NULL - Returns $this pointer. Returns NULL in case of an error.