ReflectionFunction::getClosureThis

Returns this pointer bound to closure

public function getClosureThis(): mixed;

Returns

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