Skip to content

Commit c56207e

Browse files
authored
[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. ```
1 parent 409e308 commit c56207e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/factories/ClientFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public function definition()
2525
{
2626
return $this->ensurePrimaryKeyIsSet([
2727
'user_id' => null,
28-
'name' => $this->faker->company,
28+
'name' => $this->faker->company(),
2929
'secret' => Str::random(40),
30-
'redirect' => $this->faker->url,
30+
'redirect' => $this->faker->url(),
3131
'personal_access_client' => false,
3232
'password_client' => false,
3333
'revoked' => false,

0 commit comments

Comments
 (0)