Skip to content

Commit eccff74

Browse files
committed
[Form] Removed trigger_error() for deprecations as of 3.0
1 parent b2d6f60 commit eccff74

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Extension/HttpFoundation/EventListener/BindRequestListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public function preBind(FormEvent $event)
4343
return;
4444
}
4545

46-
trigger_error('Passing a Request instance to Form::bind() is deprecated since version 2.3 and will be disabled in 3.0. Call Form::process($request) instead.', E_USER_DEPRECATED);
46+
// Uncomment this as soon as the deprecation note should be shown
47+
// trigger_error('Passing a Request instance to Form::bind() is deprecated since version 2.3 and will be disabled in 3.0. Call Form::process($request) instead.', E_USER_DEPRECATED);
4748

4849
$name = $form->getConfig()->getName();
4950
$default = $form->getConfig()->getCompound() ? array() : null;

Tests/FormIntegrationTestCase.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ protected function setUp()
3232
$this->factory = Forms::createFormFactoryBuilder()
3333
->addExtensions($this->getExtensions())
3434
->getFormFactory();
35-
36-
set_error_handler(array('Symfony\Component\Form\Test\DeprecationErrorHandler', 'handle'));
37-
}
38-
39-
protected function tearDown()
40-
{
41-
$this->factory = null;
42-
43-
restore_error_handler();
4435
}
4536

4637
protected function getExtensions()

0 commit comments

Comments
 (0)