Skip to content

Commit 4b32d82

Browse files
committed
refactor: add declare strict types to all tests
1 parent 357c2f9 commit 4b32d82

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+114
-13
lines changed

tests/ConstraintErrorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/*
46
* This file is part of the JsonSchema package.
57
*
68
* For the full copyright and license information, please view the LICENSE
79
* file that was distributed with this source code.
810
*/
9-
1011
namespace JsonSchema\Tests;
1112

1213
use JsonSchema\ConstraintError;

tests/Constraints/AdditionalPropertiesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace JsonSchema\Tests\Constraints;
46

57
use JsonSchema\Validator;

tests/Constraints/ArraysTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace JsonSchema\Tests\Constraints;
46

57
class ArraysTest extends BaseTestCase

tests/Constraints/BaseTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/*
46
* This file is part of the JsonSchema package.
57
*
68
* For the full copyright and license information, please view the LICENSE
79
* file that was distributed with this source code.
810
*/
9-
1011
namespace JsonSchema\Tests\Constraints;
1112

1213
use Generator;

tests/Constraints/BasicTypesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace JsonSchema\Tests\Constraints;
46

57
class BasicTypesTest extends BaseTestCase

tests/Constraints/CoerciveTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/*
46
* This file is part of the JsonSchema package.
57
*
68
* For the full copyright and license information, please view the LICENSE
79
* file that was distributed with this source code.
810
*/
9-
1011
namespace JsonSchema\Tests\Constraints;
1112

1213
use JsonSchema\Constraints\Constraint;

tests/Constraints/ConstTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace JsonSchema\Tests\Constraints;
46

57
class ConstTest extends BaseTestCase

tests/Constraints/DefaultPropertiesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/*
46
* This file is part of the JsonSchema package.
57
*
68
* For the full copyright and license information, please view the LICENSE
79
* file that was distributed with this source code.
810
*/
9-
1011
namespace JsonSchema\Tests\Constraints;
1112

1213
use JsonSchema\Constraints\Constraint;

tests/Constraints/DependenciesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace JsonSchema\Tests\Constraints;
46

57
class DependenciesTest extends BaseTestCase

tests/Constraints/DisallowTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace JsonSchema\Tests\Constraints;
46

57
/**

0 commit comments

Comments
 (0)