PHP callback: Is there an equivalent for ::class for a method of a class?
问题 The bounty expires in 7 days . Answers to this question are eligible for a +50 reputation bounty. Blackbam wants to draw more attention to this question: A good solution shows a possibility to do this without passing a string but something which can be validated. If this is possible with two or three lines of codes using ReflectionClass this would totally be o.k. - I am just looking for a good way to solve this in a way such that I see an error in the IDE in case a method does not exist. In