Closed TheKeymaster closed 5 years ago
Hey @TheKeymaster, the problem goes like this: ChampionID
is defined as long
in Riot's API documentation, but PHP stores big int
s as float
s.
It is no problem to say it's int
and it should be int
but it could happen that it's gonna be something else - as it happend with MatchID
s (they are integer values but are stored as float
s, should we call them int
s or float
s?).
But I guess it makes a lot more sense to be marked as integer
rather than float
. How dumb of me :joy_cat:.
Describe the bug In
\RiotAPI\LeagueAPI\Objects\ChampionMasteryDto::$championId
the typing isfloat
, but champion Ids areinteger
s. This is problematic because PHP does not support floating numbers for keys as arrays and you might get a warning in your IDE.To Reproduce Steps to reproduce the behavior:
Not relevant.