Finite
Finite copied to clipboard
Forcing State::getName to return a string.
I have a specific case where numbers (integers) are used as state names.
For some reason creating the state machine even with integers as strings, like "0" or "10", will make getName()/__toString() fail because it does not return a string.