Skip to content

Commit

Permalink
Fix internal deprecations in ColumnTypeGuesser.php (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnutix authored Jul 2, 2024
1 parent bfb4fe1 commit 4dae775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Faker/ORM/Doctrine/ColumnTypeGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function guessFormat($fieldName, ClassMetadata $class)
switch ($type) {
case 'boolean':
return static function () use ($generator) {
return $generator->boolean;
return $generator->boolean();
};

case 'decimal':
Expand Down Expand Up @@ -66,14 +66,14 @@ public function guessFormat($fieldName, ClassMetadata $class)

case 'text':
return static function () use ($generator) {
return $generator->text;
return $generator->text();
};

case 'datetime':
case 'date':
case 'time':
return static function () use ($generator) {
return $generator->datetime;
return $generator->datetime();
};

case 'datetime_immutable':
Expand Down

0 comments on commit 4dae775

Please sign in to comment.