Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
guillaume-sainthillier wants to merge3 commits intosymfony:5.2fromsilarhi:fix-doctrine-date-immutable
Closed

Conversation

@guillaume-sainthillier
Copy link
Contributor

@guillaume-sainthillierguillaume-sainthillier commentedDec 14, 2020
edited
Loading

QA
Branch?5.2
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#39468
LicenseMIT
Doc PR-

Rebased PR#39469
Fixes#39468 related to Doctrine Form Type Guesser with DateImmutable type

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has acontribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.x branch.

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!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@guillaume-sainthillierguillaume-sainthillier changed the titleFix #39468 issue with date immutable[DoctrineBridge] Fix bug with date immutable and datetime immutableDec 14, 2020
Copy link
Member

@nicolas-grekasnicolas-grekas left a 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?

class DoctrineOrmTypeGuesserTestextends TestCase
{
/**
* @dataProvider requiredType

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

Copy link
ContributorAuthor

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?

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

Copy link
ContributorAuthor

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 :-)

@guillaume-sainthillier
Copy link
ContributorAuthor

Yes I will close other PR then

…est.phpCo-authored-by: Jérémy Derussé <jeremy@derusse.com>
@derrabusderrabus changed the title[DoctrineBridge] Fix bug with date immutable and datetime immutable[DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLEDec 16, 2020
@derrabus
Copy link
Member

Thank you@guillaume-sainthillier.

derrabus added a commit that referenced this pull requestDec 16, 2020
…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#39469Fixes#39468 related to Doctrine Form Type Guesser with DateImmutable typeCommits-------238d318 [DoctrineBridge] Guess correct form types for DATE_IMMUTABLE and DATETIME_IMMUTABLE
@fabpotfabpot mentioned this pull requestDec 18, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@jderussejderussejderusse approved these changes

@derrabusderrabusderrabus approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

5 participants

@guillaume-sainthillier@carsonbot@derrabus@nicolas-grekas@jderusse

[8]ページ先頭

©2009-2025 Movatter.jp