Fix static analysis CI step error
Some checks failed
CI / ci (push) Failing after 8m17s

This commit is contained in:
myrmidex 2026-06-06 07:58:31 +00:00
parent 0f32bf59a3
commit 7e91d570c7
3 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View file

@ -23,4 +23,5 @@
###> phpstan/phpstan ###
phpstan.*
!phpstan.dist.neon
###< phpstan/phpstan ###

10
phpstan.dist.neon Normal file
View file

@ -0,0 +1,10 @@
parameters:
level: 6
paths:
- bin/
- config/
- public/
- src/
- tests/
includes:
- phpstan-baseline.neon

View file

@ -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()->sentence() ?? '',
'subject' => RestaurantFactory::new(),
'user' => UserFactory::new(),
];