Corey Worrell

Results 23 comments of Corey Worrell

Can't you do: ```php set('rsync', function () { return array_merge(get('rsync'), [ 'exclude' => [ '.git', 'deploy.php', ], ]); }); ```

Looking in `~/.composer/cache/repo/https---wpackagist.org/provider-wpackagist-plugin$advanced-post-manager.json` I see there is an entry for `4.5` (normalized to `4.5.0.0.`) pointing to trunk, and then also a `4.5.0` (also normalized to `4.5.0.0` pointing to the correct...

Yes that works, but shouldn't the expectation work as well? It seems to be the preferred way to test actions/filters.

I saw a version from a blog article that used ```php expectAdded('filter')->with(function ($cb) { return $cb[0] instanceof Example && $cb[1] === 'template'; }); ``` But that also gave me the...

Thanks @gmazzap! That's what I was missing, difference between `with` and `withArgs`. I refactored my test in a way that didn't require any calls to `add_filter`, but this looks like...

@gmazzap Just tested this again, it does not seem to work. The test passes no matter what. Even this passes: ```php expectAdded('wp_dashboard_setup')->withArgs(function () { return false; }); ```

Thanks for looking into this and for the fix!

Having this issue still today as well.

Yeah, very frustrating to not be able to update npm dependencies either as normal, have to remember each time to update everything except flickity. It's been in this state for...