diff --git a/src/Factory/RatingFactory.php b/src/Factory/RatingFactory.php index 499c687..8ebdb55 100644 --- a/src/Factory/RatingFactory.php +++ b/src/Factory/RatingFactory.php @@ -33,7 +33,7 @@ final class RatingFactory extends PersistentObjectFactory { return [ 'score' => self::faker()->numberBetween(1, 5), - 'note' => self::faker()->optional()->sentence() ?? '', + 'note' => self::faker()->optional(default: '')->sentence(), 'subject' => RestaurantFactory::new(), 'user' => UserFactory::new(), ];