After upgrading from 3.6 to 3.7, I faced into one problem.
Previously, you could call several of these methods (in different places) and then they were executed. But now the logic has changed and we can only call them once.
The inconvenience is that, for example, we have a base class in which there is some logic in before() and after() methods. There may also be additional logic in the scripts themselves. Additionally, there are traits through which we “mix” the necessary logic via before() and after()
I found in which commit this was changed. Previously, there was an array accepting functions