The method readRecent does only exist in Ps2alerts\Api\Loader\AlertLoader, but not in Ps2alerts\Api\Loader\Met...\PlayerStatisticsLoader.
It seems like the method you are trying to call exists only in some of the
possible types.
Let’s take a look at an example:
classA{publicfunctionfoo(){}}classBextendsA{publicfunctionbar(){}}/** * @param A|B $x */functionsomeFunction($x){$x->foo();// This call is fine as the method exists in A and B.$x->bar();// This method only exists in B and might cause an error.}
The method readActive does only exist in Ps2alerts\Api\Loader\AlertLoader, but not in Ps2alerts\Api\Loader\Met...\PlayerStatisticsLoader.
It seems like the method you are trying to call exists only in some of the
possible types.
Let’s take a look at an example:
classA{publicfunctionfoo(){}}classBextendsA{publicfunctionbar(){}}/** * @param A|B $x */functionsomeFunction($x){$x->foo();// This call is fine as the method exists in A and B.$x->bar();// This method only exists in B and might cause an error.}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.