@@ -15,7 +15,7 @@
}
],
"require": {
- "php": ">=7.2.0",
+ "php": ">=7.2.5",
"ext-json": "*",
"dingo/api": "^2.3",
"fzaninotto/faker": "^1.8",
@@ -15,9 +15,9 @@
- "fzaninotto/faker": "^1.8",
+ "fzaninotto/faker": "^1.9.1",
"illuminate/console": "^5.8|^6.0|^7.0",
"illuminate/routing": "^5.8|^6.0|^7.0",
"illuminate/support": "^5.8|^6.0|^7.0",
@@ -234,7 +234,7 @@ class Utils
default:
return "`"
- . join('`, `', array_slice($list, 0, -1))
+ . implode('`, `', array_slice($list, 0, -1))
. "`, or `" . end($list) . "`";
@@ -101,7 +101,7 @@ class UseApiResourceTagsTest extends TestCase
$factory->afterMaking(TestUser::class, function (TestUser $user, $faker) {
if ($user->id === 4) {
$child = factory(TestUser::class)->make(['id' => 5, 'parent_id' => 4]);
- $user->setRelation('children', [$child]);
+ $user->setRelation('children', collect($child));
});