Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55ed00c

Browse files
committed
Stop using deprecated trait
1 parent c052542 commit 55ed00c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/DeprecationTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@
1515
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
1616
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler\Deprecation;
1717
use Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerForV5;
18-
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;
1918

2019
class DeprecationTest extends TestCase
2120
{
22-
use SetUpTearDownTrait;
23-
2421
private static $vendorDir;
2522
private static $prefixDirsPsr4;
2623

@@ -261,7 +258,7 @@ private static function removeDir($dir)
261258
rmdir($dir);
262259
}
263260

264-
private static function doSetupBeforeClass()
261+
public static function setupBeforeClass(): void
265262
{
266263
foreach (get_declared_classes() as $class) {
267264
if ('C' === $class[0] && 0 === strpos($class, 'ComposerAutoloaderInit')) {
@@ -281,7 +278,7 @@ private static function doSetupBeforeClass()
281278
}
282279
}
283280

284-
private static function doTearDownAfterClass()
281+
public static function tearDownAfterClass(): void
285282
{
286283
foreach (self::$prefixDirsPsr4 as [$prop, $loader, $prefixDirsPsr4]) {
287284
$prop->setValue($loader, $prefixDirsPsr4);

0 commit comments

Comments
 (0)