Fix tests for PHP7.2
This commit is contained in:
parent
119908b1c2
commit
b1f15e52a0
2 changed files with 10 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue