Skip to content

Commit 966ac2d

Browse files
committed
minor #13271 [2.6] fix deprecation silencing... (nicolas-grekas)
This PR was merged into the 2.6 branch. Discussion ---------- [2.6] fix deprecation silencing... | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - My bad... Commits ------- 57fddbf [2.6] fix deprecation silencing...
2 parents 3b0db95 + 57fddbf commit 966ac2d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Templating/GlobalVariablesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function setUp()
2828

2929
public function testLegacyGetSecurity()
3030
{
31-
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
31+
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
3232

3333
$securityContext = $this->getMock('Symfony\Component\Security\Core\SecurityContextInterface');
3434

src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testHandleClassNotFound($error, $translatedMessage)
3939
*/
4040
public function testLegacyHandleClassNotFound($error, $translatedMessage, $autoloader)
4141
{
42-
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
42+
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
4343

4444
// Unregister all autoloaders to ensure the custom provided
4545
// autoloader is the only one to be used during the test run.

src/Symfony/Component/DependencyInjection/Tests/LegacyContainerBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LegacyContainerBuilderTest extends \PHPUnit_Framework_TestCase
1818
{
1919
public function setUp()
2020
{
21-
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
21+
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2222
}
2323

2424
/**

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class LegacyPdoSessionHandlerTest extends \PHPUnit_Framework_TestCase
1919

2020
protected function setUp()
2121
{
22-
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
22+
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2323

2424
if (!class_exists('PDO') || !in_array('sqlite', \PDO::getAvailableDrivers())) {
2525
$this->markTestSkipped('This test requires SQLite support in your environment');

src/Symfony/Component/OptionsResolver/Tests/LegacyOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class LegacyOptionsTest extends \PHPUnit_Framework_TestCase
2323

2424
protected function setUp()
2525
{
26-
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
26+
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2727

2828
$this->options = new OptionsResolver();
2929
}

src/Symfony/Component/Security/Tests/Core/LegacySecurityContextInterfaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class LegacySecurityContextInterfaceTest extends \PHPUnit_Framework_TestCase
2121
*/
2222
public function testConstantSync()
2323
{
24-
$this->iniSet('error_reporting', -1 & E_USER_DEPRECATED);
24+
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
2525

2626
$this->assertSame(Security::ACCESS_DENIED_ERROR, SecurityContextInterface::ACCESS_DENIED_ERROR);
2727
$this->assertSame(Security::AUTHENTICATION_ERROR, SecurityContextInterface::AUTHENTICATION_ERROR);

0 commit comments

Comments
 (0)