Skip to content

Commit 2a431f2

Browse files
committed
refactor: Add now required void return types for setup() methods
1 parent 58b2b76 commit 2a431f2

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

tests/Constraints/CoerciveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CoerciveTest extends VeryBaseTestCase
1818
{
1919
protected $factory = null;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
$this->factory = new Factory();
2424
$this->factory->setConfig(Constraint::CHECK_MODE_TYPE_CAST | Constraint::CHECK_MODE_COERCE_TYPES);

tests/Constraints/FactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class FactoryTest extends TestCase
4242
*/
4343
protected $factory;
4444

45-
protected function setUp()
45+
protected function setUp(): void
4646
{
4747
$this->factory = new Factory();
4848
}

tests/Constraints/FormatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class FormatTest extends BaseTestCase
1717
{
1818
protected $validateSchema = true;
1919

20-
public function setUp()
20+
public function setUp(): void
2121
{
2222
date_default_timezone_set('UTC');
2323
}

tests/Constraints/MinLengthMaxLengthMultiByteTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MinLengthMaxLengthMultiByteTest extends BaseTestCase
1313
{
1414
protected $validateSchema = true;
1515

16-
protected function setUp()
16+
protected function setUp(): void
1717
{
1818
if (!extension_loaded('mbstring')) {
1919
$this->markTestSkipped('mbstring extension is not available');

tests/Iterators/ObjectIteratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ObjectIteratorTest extends TestCase
1616
{
1717
protected $testObject;
1818

19-
public function setUp()
19+
public function setUp(): void
2020
{
2121
$this->testObject = (object) array(
2222
'subOne' => (object) array(

tests/Uri/Retrievers/PredefinedArrayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PredefinedArrayTest extends TestCase
1212
{
1313
private $retriever;
1414

15-
public function setUp()
15+
public function setUp(): void
1616
{
1717
$this->retriever = new PredefinedArray(
1818
array(

tests/Uri/UriResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class UriResolverTest extends TestCase
99
{
1010
private $resolver;
1111

12-
public function setUp()
12+
public function setUp(): void
1313
{
1414
$this->resolver = new UriResolver();
1515
}

tests/Uri/UriRetrieverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class UriRetrieverTest extends TestCase
2121
{
2222
protected $validator;
2323

24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
$this->validator = new Validator();
2727
}

0 commit comments

Comments
 (0)