The error occur for this code:
$posts = App\Post::whereHas('comments', function (Builder $query) {
$query->where('content', 'like', 'foo%');
});
I'm using phpcs vscode and need all of the default rules of phpcs except this one!
Could you please tell me how to
- Write a phpcs with all of the default rules
- How to exclude this rule