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

Appearance settings

[DEPRECATION] : deprecated support for Traversable in method ResizeFormListener::PreSubmit #17732

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

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix backticks in .md
  • Loading branch information
ybensacq committed Feb 9, 2016
commit 176d30d9cc7971e11d1094dd8bf8efe85f8d1391
5 changes: 3 additions & 2 deletions 5 UPGRADE-3.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ Form

* The `choices_as_values` option of the `ChoiceType` has been deprecated and
will be removed in Symfony 4.0.
* Support for data objects that implements both \Traversable and \ArrayAccess in ResizeFormListener::preSubmit method has been deprecated
and will be removed in Symfony 4.0.
* Support for data objects that implements both `\Traversable` and `\ArrayAccess`
in `ResizeFormListener::preSubmit` method has been deprecated and will be
removed in Symfony 4.0.

HttpKernel
----------
Expand Down
3 changes: 2 additions & 1 deletion 3 UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Form
----

* The `choices_as_values` option of the `ChoiceType` has been removed.
* Support for data objects that implements both \Traversable and \ArrayAccess in ResizeFormListener::preSubmit method has been removed
* Support for data objects that implements both `\Traversable` and
`\ArrayAccess` in `ResizeFormListener::preSubmit` method has been removed

Serializer
----------
Expand Down
3 changes: 2 additions & 1 deletion 3 src/Symfony/Component/Form/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ CHANGELOG
-----

* deprecated the "choices_as_values" option of ChoiceType
* deprecated support for data objects that implements both \Traversable and \ArrayAccess in ResizeFormListener::preSubmit method
* deprecated support for data objects that implements both `\Traversable` and
`\ArrayAccess` in `ResizeFormListener::preSubmit` method

3.0.0
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function preSubmit(FormEvent $event)
$data = $event->getData();

if ($data instanceof \Traversable && $data instanceof \ArrayAccess) {
@trigger_error('Support for objects implementing both \Traversable and \ArrayAccess is deprecated since version 3.1 and will be removed in 4.0.Use an array instead.', E_USER_DEPRECATED);
@trigger_error('Support for objects implementing both \Traversable and \ArrayAccess is deprecated since version 3.1 and will be removed in 4.0. Use an array instead.', E_USER_DEPRECATED);
}

if (null === $data || '' === $data) {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.