Skip to content

Commit 9953550

Browse files
Clean useless deprecation silencing
1 parent 4cde2d1 commit 9953550

File tree

10 files changed

+2
-25
lines changed

10 files changed

+2
-25
lines changed

src/Symfony/Bundle/FrameworkBundle/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected function getScript($request)
165165
$code = <<<EOF
166166
<?php
167167
168-
error_reporting($errorReporting & ~E_USER_DEPRECATED);
168+
error_reporting($errorReporting);
169169
170170
if ('$autoloader') {
171171
require_once '$autoloader';

src/Symfony/Bundle/TwigBundle/Tests/TokenParser/LegacyRenderTokenParserTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
*/
2121
class LegacyRenderTokenParserTest extends TestCase
2222
{
23-
protected function setUp()
24-
{
25-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
26-
}
27-
2823
/**
2924
* @dataProvider getTestsForRender
3025
*/

src/Symfony/Component/Form/Tests/AbstractLayoutTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ abstract protected function setTheme(FormView $view, array $themes);
127127
*/
128128
public function testLegacyEnctype()
129129
{
130-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
131-
132130
$form = $this->factory->createNamedBuilder('name', 'form')
133131
->add('file', 'file')
134132
->getForm();
@@ -141,8 +139,6 @@ public function testLegacyEnctype()
141139
*/
142140
public function testLegacyNoEnctype()
143141
{
144-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
145-
146142
$form = $this->factory->createNamedBuilder('name', 'form')
147143
->add('text', 'text')
148144
->getForm();

src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/DefaultCsrfProviderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public static function setUpBeforeClass()
2525
{
2626
ini_set('session.save_handler', 'files');
2727
ini_set('session.save_path', sys_get_temp_dir());
28-
ini_set('error_reporting', -1 & ~E_USER_DEPRECATED);
2928
}
3029

3130
protected function setUp()

src/Symfony/Component/Form/Tests/Extension/HttpFoundation/EventListener/LegacyBindRequestListenerTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ class LegacyBindRequestListenerTest extends \PHPUnit_Framework_TestCase
3737

3838
protected function setUp()
3939
{
40-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
41-
4240
$path = tempnam(sys_get_temp_dir(), 'sf2');
4341
touch($path);
4442

src/Symfony/Component/HttpKernel/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ protected function getScript($request)
105105
$code = <<<EOF
106106
<?php
107107
108-
error_reporting($errorReporting & ~E_USER_DEPRECATED);
108+
error_reporting($errorReporting);
109109
110110
require_once '$requirePath';
111111

src/Symfony/Component/Locale/Tests/LocaleTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
2222
{
2323
protected function setUp()
2424
{
25-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
26-
2725
\Locale::setDefault('en');
2826
}
2927

src/Symfony/Component/Locale/Tests/Stub/StubLocaleTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
*/
1919
class StubLocaleTest extends \PHPUnit_Framework_TestCase
2020
{
21-
protected function setUp()
22-
{
23-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
24-
}
25-
2621
public function testGetCurrenciesData()
2722
{
2823
$currencies = StubLocale::getCurrenciesData('en');

src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ public function getValidParameters()
5151
*/
5252
public function testLegacyGetPattern()
5353
{
54-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
55-
5654
$route = new Route(array('value' => '/Blog'));
5755
$this->assertEquals($route->getPattern(), '/Blog');
5856
}

src/Symfony/Component/Routing/Tests/RouteTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ public function testCompile()
206206
*/
207207
public function testLegacyPattern()
208208
{
209-
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
210-
211209
$route = new Route('/{foo}');
212210
$this->assertEquals('/{foo}', $route->getPattern());
213211

0 commit comments

Comments
 (0)