Skip to content

Commit 24d5147

Browse files
committed
Disable phpunit typehint patch on 4.3 branch
1 parent daa5fe4 commit 24d5147

15 files changed

+25
-25
lines changed

Tests/ConstraintViolationListTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ class ConstraintViolationListTest extends TestCase
1919
{
2020
protected $list;
2121

22-
protected function setUp()
22+
protected function setUp(): void
2323
{
2424
$this->list = new ConstraintViolationList();
2525
}
2626

27-
protected function tearDown()
27+
protected function tearDown(): void
2828
{
2929
$this->list = null;
3030
}

Tests/Constraints/CountryValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class CountryValidatorTest extends ConstraintValidatorTestCase
2020
{
2121
private $defaultLocale;
2222

23-
protected function setUp()
23+
protected function setUp(): void
2424
{
2525
parent::setUp();
2626

2727
$this->defaultLocale = \Locale::getDefault();
2828
}
2929

30-
protected function tearDown()
30+
protected function tearDown(): void
3131
{
3232
parent::tearDown();
3333

Tests/Constraints/CurrencyValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class CurrencyValidatorTest extends ConstraintValidatorTestCase
2020
{
2121
private $defaultLocale;
2222

23-
protected function setUp()
23+
protected function setUp(): void
2424
{
2525
parent::setUp();
2626

2727
$this->defaultLocale = \Locale::getDefault();
2828
}
2929

30-
protected function tearDown()
30+
protected function tearDown(): void
3131
{
3232
parent::tearDown();
3333

Tests/Constraints/FileValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function createValidator()
2727
return new FileValidator();
2828
}
2929

30-
protected function setUp()
30+
protected function setUp(): void
3131
{
3232
parent::setUp();
3333

@@ -36,7 +36,7 @@ protected function setUp()
3636
fwrite($this->file, ' ', 1);
3737
}
3838

39-
protected function tearDown()
39+
protected function tearDown(): void
4040
{
4141
parent::tearDown();
4242

Tests/Constraints/ImageValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function createValidator()
3939
return new ImageValidator();
4040
}
4141

42-
protected function setUp()
42+
protected function setUp(): void
4343
{
4444
parent::setUp();
4545

Tests/Constraints/LanguageValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class LanguageValidatorTest extends ConstraintValidatorTestCase
2020
{
2121
private $defaultLocale;
2222

23-
protected function setUp()
23+
protected function setUp(): void
2424
{
2525
parent::setUp();
2626

2727
$this->defaultLocale = \Locale::getDefault();
2828
}
2929

30-
protected function tearDown()
30+
protected function tearDown(): void
3131
{
3232
parent::tearDown();
3333

Tests/Constraints/TypeValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function createFile()
172172
return static::$file;
173173
}
174174

175-
public static function tearDownAfterClass()
175+
public static function tearDownAfterClass(): void
176176
{
177177
if (static::$file) {
178178
fclose(static::$file);

Tests/Mapping/Cache/DoctrineCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class DoctrineCacheTest extends AbstractCacheTest
1818
{
19-
protected function setUp()
19+
protected function setUp(): void
2020
{
2121
$this->cache = new DoctrineCache(new ArrayCache());
2222
}

Tests/Mapping/Cache/Psr6CacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
class Psr6CacheTest extends AbstractCacheTest
1313
{
14-
protected function setUp()
14+
protected function setUp(): void
1515
{
1616
$this->cache = new Psr6Cache(new ArrayAdapter());
1717
}

Tests/Mapping/ClassMetadataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ class ClassMetadataTest extends TestCase
2828

2929
protected $metadata;
3030

31-
protected function setUp()
31+
protected function setUp(): void
3232
{
3333
$this->metadata = new ClassMetadata(self::CLASSNAME);
3434
}
3535

36-
protected function tearDown()
36+
protected function tearDown(): void
3737
{
3838
$this->metadata = null;
3939
}

0 commit comments

Comments
 (0)