Skip to content

Commit

Permalink
[10.x] Fix Faker deprecations (#1530)
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
X-Coder264 authored Feb 15, 2022
1 parent 409e308 commit c56207e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/factories/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c56207e

Please sign in to comment.