Skip to content
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

reduce deprecation notices #205

Merged
merged 6 commits into from
Dec 2, 2015
Merged

reduce deprecation notices #205

merged 6 commits into from
Dec 2, 2015

Conversation

craue
Copy link
Owner

@craue craue commented Dec 1, 2015

At least with Symfony 2.7, I could get rid of all deprecation notices.

With 2.8, this won't be possible due to scopes. But there are two other notices I'm unable to track down yet (Travis log):

  • The value "false" for the "choices_as_values" option is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead: 85x although choices_as_values isn't used in the code at all.
  • The Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList class is deprecated since version 2.8 and will be removed in 3.0. Use Symfony\Component\Form\ChoiceList\ArrayChoiceList instead: 1x although ArrayKeyChoiceList isn't used in the code at all.

@craue craue force-pushed the 2.1.x-reduce-deprecation-notices branch from 29d8741 to 1805f03 Compare December 1, 2015 18:45
@craue
Copy link
Owner Author

craue commented Dec 1, 2015

@stof, could you give me some hints on those two?

@craue craue force-pushed the 2.1.x-reduce-deprecation-notices branch from 1805f03 to d08d311 Compare December 2, 2015 00:39
@craue
Copy link
Owner Author

craue commented Dec 2, 2015

Alright, the missing choices_as_values option was causing both notices. Now only scope-related notices remain.

</service>

<service id="craue.form.flow.step_field_extension" class="Craue\FormFlowBundle\Form\Extension\FormFlowStepFieldExtension">
<tag name="form.type_extension" extended_type="Symfony\Component\Form\Extension\Core\Type\HiddenType" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use dashes, not underscores in XML in tag attribute names

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@craue craue force-pushed the 2.1.x-reduce-deprecation-notices branch from d08d311 to c138859 Compare December 2, 2015 10:04
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="twig.extension.craue_integration_test" class="Craue\FormFlowBundle\Tests\IntegrationTestBundle\Twig\Extension\IntegrationTestTwigExtension">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should make the service private

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@craue craue force-pushed the 2.1.x-reduce-deprecation-notices branch from c138859 to 3fc3576 Compare December 2, 2015 10:27
@craue
Copy link
Owner Author

craue commented Dec 2, 2015

Thank you for your feedback, @stof.

craue added a commit that referenced this pull request Dec 2, 2015
@craue craue merged commit c2f7df3 into 2.1.x Dec 2, 2015
@craue craue deleted the 2.1.x-reduce-deprecation-notices branch December 2, 2015 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants