From 7abcfb9144af864998ba9dec648831d07d9bc2b0 Mon Sep 17 00:00:00 2001 From: manager Date: Fri, 12 Jan 2024 23:35:26 +0500 Subject: [PATCH] Replace deprecated Faker property access --- src/Test/Fakers/GroupFaker.php | 4 ++-- src/Test/Fakers/PermissionFaker.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Test/Fakers/GroupFaker.php b/src/Test/Fakers/GroupFaker.php index 0467d08..104fb74 100644 --- a/src/Test/Fakers/GroupFaker.php +++ b/src/Test/Fakers/GroupFaker.php @@ -14,8 +14,8 @@ class GroupFaker extends GroupModel public function fake(Generator &$faker): stdClass { return (object) [ - 'name' => $faker->word, - 'description' => $faker->sentence, + 'name' => $faker->word(), + 'description' => $faker->sentence(), ]; } } diff --git a/src/Test/Fakers/PermissionFaker.php b/src/Test/Fakers/PermissionFaker.php index 6609774..3a0a8f0 100644 --- a/src/Test/Fakers/PermissionFaker.php +++ b/src/Test/Fakers/PermissionFaker.php @@ -13,8 +13,8 @@ class PermissionFaker extends PermissionModel public function fake(Generator &$faker): array { return [ - 'name' => $faker->word, - 'description' => $faker->sentence, + 'name' => $faker->word(), + 'description' => $faker->sentence(), ]; } }