From c56207e9a37c849da0164842a609a9f38747e95b Mon Sep 17 00:00:00 2001 From: Antonio Pauletich Date: Tue, 15 Feb 2022 22:44:15 +0100 Subject: [PATCH] [10.x] Fix Faker deprecations (#1530) When using this factory in feature tests with `$this->withoutDeprecationHandling();` call the test fails as the deprecation gets converted to an exception: ``` Since fakerphp/faker 1.14: Accessing property "company" is deprecated, use "company()" instead. ``` --- database/factories/ClientFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/factories/ClientFactory.php b/database/factories/ClientFactory.php index 332285ec5..afdc227da 100644 --- a/database/factories/ClientFactory.php +++ b/database/factories/ClientFactory.php @@ -25,9 +25,9 @@ public function definition() { return $this->ensurePrimaryKeyIsSet([ 'user_id' => null, - 'name' => $this->faker->company, + 'name' => $this->faker->company(), 'secret' => Str::random(40), - 'redirect' => $this->faker->url, + 'redirect' => $this->faker->url(), 'personal_access_client' => false, 'password_client' => false, 'revoked' => false,