You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if we already discussed this or not - but a really common pattern under Recoil / PHP 7 is to use generates()->returns() where you simply want a stubbed coroutine to return a specific value.
Perhaps we could add a second parameter to generates(), which is the return value for PHP 7 generators:
I'm not sure if we already discussed this or not - but a really common pattern under Recoil / PHP 7 is to use
generates()->returns()where you simply want a stubbed coroutine to return a specific value.Perhaps we could add a second parameter to
generates(), which is the return value for PHP 7 generators:generates($values = array(), $returnValue = null)So usage is imply:
$stub->generates([], new Thing());Thoughts?