Skip to content

Commit 7abcfb9

Browse files
committed
Replace deprecated Faker property access
1 parent ca1335a commit 7abcfb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Test/Fakers/GroupFaker.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class GroupFaker extends GroupModel
1414
public function fake(Generator &$faker): stdClass
1515
{
1616
return (object) [
17-
'name' => $faker->word,
18-
'description' => $faker->sentence,
17+
'name' => $faker->word(),
18+
'description' => $faker->sentence(),
1919
];
2020
}
2121
}

src/Test/Fakers/PermissionFaker.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class PermissionFaker extends PermissionModel
1313
public function fake(Generator &$faker): array
1414
{
1515
return [
16-
'name' => $faker->word,
17-
'description' => $faker->sentence,
16+
'name' => $faker->word(),
17+
'description' => $faker->sentence(),
1818
];
1919
}
2020
}

0 commit comments

Comments
 (0)