The main purpose of this article is to present a generalization Forelli’s theorem for the functions holomorphic along general pencil discs. This generalizes result Joo et al. (Math Ann 355(3):1171–1176, 2013) and original theorem, furthermore, answers one problems posed in Chirka (Proc Steklov Inst Math 253(2):212–220, 2006).