Fix tests for PHP7.2

This commit is contained in:
Jonny Barnes 2017-09-12 14:39:22 +01:00
parent 119908b1c2
commit b1f15e52a0
2 changed files with 10 additions and 3 deletions

View file

@ -42,7 +42,7 @@ class AppServiceProvider extends ServiceProvider
$tag = Tag::firstOrCreate(['tag' => $tag]);
$tagsToAdd[] = $tag->id;
}
if (count($tagsToAdd > 0)) {
if (count($tagsToAdd) > 0) {
$note->tags()->attach($tagsToAdd);
}
});