Closed fracsi closed 8 years ago
Thank you for reporting this issue, @fracsi.
As #237 doesn't seem to be the right approach, how about adding a new class StepLabel
which would be explicit about the label being callable or not. I'll prepare a PR to see how it pans out.
@craue For maintainability i think the new class would be the best option.
I tried to name one of my steps as Date, but it is a PHP callable so
Step::getLabel
tries to execute it. Maybe it should be marked explicitly if a label is a callable and not only by checking in the getLabel call byis_callable($this->label)
A simple case to reproduce: