Fix method phpDoc

With old declaration variable expectation failed