This commit is contained in:
parent
0f32bf59a3
commit
7e91d570c7
3 changed files with 12 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -23,4 +23,5 @@
|
||||||
|
|
||||||
###> phpstan/phpstan ###
|
###> phpstan/phpstan ###
|
||||||
phpstan.*
|
phpstan.*
|
||||||
|
!phpstan.dist.neon
|
||||||
###< phpstan/phpstan ###
|
###< phpstan/phpstan ###
|
||||||
|
|
|
||||||
10
phpstan.dist.neon
Normal file
10
phpstan.dist.neon
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
parameters:
|
||||||
|
level: 6
|
||||||
|
paths:
|
||||||
|
- bin/
|
||||||
|
- config/
|
||||||
|
- public/
|
||||||
|
- src/
|
||||||
|
- tests/
|
||||||
|
includes:
|
||||||
|
- phpstan-baseline.neon
|
||||||
|
|
@ -33,7 +33,7 @@ final class RatingFactory extends PersistentObjectFactory
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'score' => self::faker()->numberBetween(1, 5),
|
'score' => self::faker()->numberBetween(1, 5),
|
||||||
'note' => self::faker()->optional()->sentence(),
|
'note' => self::faker()->optional()->sentence() ?? '',
|
||||||
'subject' => RestaurantFactory::new(),
|
'subject' => RestaurantFactory::new(),
|
||||||
'user' => UserFactory::new(),
|
'user' => UserFactory::new(),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue