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
[TranslatorBundle] Added missing validation on translation file #2712
Conversation
krewetka
commented
Aug 6, 2020
Q | A |
---|---|
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Fixed tickets | 2710 |
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.
Hi @, your PR needs some changes
- It seems that you should have submitted to the latest minor branch.
- This PR seems to need a milestone of a patch release.
Hi everyone, I am not sure to which branch I should put this PR. Let me know then I can rebase it to correct one. |
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 @krewetka! Can you rebase the PR against the 5.5 branch?
@@ -19,6 +19,9 @@ public function buildForm(FormBuilderInterface $builder, array $options) | |||
$builder->add('file', FileType::class, [ | |||
'required' => true, | |||
'label' => 'kuma_translator.form.upload_file_choose', | |||
'constraints' => array( |
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.
Can you use the short array syntax here? And add a trailing comma to the new NotBlank()
line. Thanks!
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 problem :) I see two types mixed in this file
@@ -19,6 +19,9 @@ public function buildForm(FormBuilderInterface $builder, array $options) | |||
$builder->add('file', FileType::class, [ | |||
'required' => true, | |||
'label' => 'kuma_translator.form.upload_file_choose', | |||
'constraints' => array( | |||
new NotBlank() |
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.
And there is a use Symfony\Component\Validator\Constraints\NotBlank;
use missing
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.
Hi @, your PR passed all our requirements.
Thank you for contributing!
All should be fixed now. Only name in my branch in fork is 5.6 but it is rebased on 5.5 |
@acrobat are you able to figure what happened with travis build?
Also |
@acrobat I rebased it on newest version of 5.5 and all checks are passed now. Only thing probably left is your approval. |
Thanks @krewetka! And congrats on your first contribution! 🎉 |