Closed alexstandiford closed 4 years ago
For #53
@JJJ - This makes sense. I went ahead and created a private method as you had suggested. I wasn't sure what the version number should be, so I just went with 1.0.0
. If we have an actual release number to use let me know and I'll adjust.
Also, I wasn't sure where the method should go in the class. There seems to be some sense of order. I placed it just below the method that calls it. If it should go elsewhere, just let me know.
This looks great! I'm going merge it.
I might rename/tweak after it's merged, but maybe not. 💫
We could potentially use a foreach loop here, but I figured I'd keep the code as similar as it was as possible. Basically, I just changed the filter to use the key of
$versions
, which is the version number. Prior to this, it un-intentionally used the values of$versions
, which is supposed to be the callback.