From f3c06363dbf2dd6669dc2aa3d63355ad7b2e5e56 Mon Sep 17 00:00:00 2001 From: myrmidex Date: Wed, 10 Jun 2026 15:41:59 +0000 Subject: [PATCH] Fix static analysis nullCoalesce error --- src/Factory/RatingFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), ];