-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE #39498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE #39498
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I suppose #39469 should be closed?
use Symfony\Component\Form\Guess\ValueGuess; | ||
|
||
class DoctrineOrmTypeGuesserTest extends TestCase | ||
{ | ||
/** | ||
* @dataProvider requiredType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for a provider here since there is only one item in the provided list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want me to add more items to this list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only if it makes sense to improve the code coverage
otherwise, no need for the provider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added one more test to also cover DateTimeImmutable :-)
Yes I will close other PR then |
src/Symfony/Bridge/Doctrine/Tests/Form/DoctrineOrmTypeGuesserTest.php
Outdated
Show resolved
Hide resolved
…est.php Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
Thank you @guillaume-sainthillier. |
…LE and DATETIME_IMMUTABLE (guillaume-sainthillier) This PR was squashed before being merged into the 5.2 branch. Discussion ---------- [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #39468 | License | MIT | Doc PR | - Rebased PR #39469 Fixes #39468 related to Doctrine Form Type Guesser with DateImmutable type Commits ------- 238d318 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE
Rebased PR #39469
Fixes #39468 related to Doctrine Form Type Guesser with DateImmutable type