Skip to content

Commit 6e8961f

Browse files
srmnqSaraGfroerer
andauthored
Php7.4 (#25)
* Declare strict types * Typehinting * Remove redundant docbloc Co-authored-by: Sara Gfrörer <[email protected]>
1 parent 6d248da commit 6e8961f

Some content is hidden

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

43 files changed

+136
-82
lines changed

composer.json

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,48 @@
11
{
2-
"name": "cubicl/php-structure-check",
3-
"description": "Structural check of arrays for PHP 7.3+",
4-
"keywords": ["array", "structure", "types"],
5-
"homepage": "https://github.com/cubicldev/php-structure-check",
6-
"type": "library",
7-
"license": "MIT",
8-
"authors": [
9-
{
10-
"name": "Christian Blank",
11-
"email": "[email protected]",
12-
"homepage": "https://cubicl.de"
13-
}
2+
"name": "cubicl/php-structure-check",
3+
"description": "Structural check of arrays for PHP 7.3+",
4+
"keywords": [
5+
"array",
6+
"structure",
7+
"types"
8+
],
9+
"homepage": "https://github.com/cubicldev/php-structure-check",
10+
"type": "library",
11+
"license": "MIT",
12+
"authors": [
13+
{
14+
"name": "Christian Blank",
15+
"email": "[email protected]",
16+
"homepage": "https://cubicl.de"
17+
}
18+
],
19+
"scripts": {
20+
"check": [
21+
"@analyze",
22+
"@tests",
23+
"@tests-spec"
1424
],
15-
"scripts": {
16-
"check": ["@analyze", "@tests", "@tests-spec"],
17-
"tests": "phpunit tests",
18-
"analyze": "phpstan analyse --level max src",
19-
"tests-spec": "phpspec run --no-interaction"
20-
},
21-
"require-dev": {
22-
"phpspec/phpspec": "^6.2",
23-
"phpunit/phpunit": "^9.3",
24-
"phpstan/phpstan": "^0.12"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"Cubicl\\StructureCheck\\": [
29-
"src"
30-
],
31-
"Cubicl\\StructureCheck\\Test\\": [
32-
"tests"
33-
]
34-
}
35-
},
25+
"tests": "phpunit tests",
26+
"analyze": "phpstan analyse --level max src",
27+
"tests-spec": "phpspec run --no-interaction"
28+
},
29+
"require-dev": {
30+
"phpspec/phpspec": "^6.2",
31+
"phpunit/phpunit": "^9.3",
32+
"phpstan/phpstan": "^0.12"
33+
},
34+
"autoload": {
35+
"psr-4": {
36+
"Cubicl\\StructureCheck\\": [
37+
"src"
38+
],
39+
"Cubicl\\StructureCheck\\Test\\": [
40+
"tests"
41+
]
42+
}
43+
},
3644
"require": {
37-
"ext-json": "*"
45+
"ext-json": "*",
46+
"php": "^7.4"
3847
}
3948
}

spec/Check/CountCheckSpec.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 spec\Cubicl\StructureCheck\Check;
46

57
use Cubicl\StructureCheck\Check\CountCheck;

spec/Check/NumericRangeCheckSpec.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 spec\Cubicl\StructureCheck\Check;
46

57
use Prophecy\Argument;

spec/CheckerSpec.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 spec\Cubicl\StructureCheck;
46

57
use PhpSpec\ObjectBehavior;

spec/ResultSpec.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 spec\Cubicl\StructureCheck;
46

57
use PhpSpec\ObjectBehavior;

spec/Type/AnyTypeSpec.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 spec\Cubicl\StructureCheck\Type;
46

57
use Cubicl\StructureCheck\Type\AnyType;

spec/Type/BoolTypeSpec.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 spec\Cubicl\StructureCheck\Type;
46

57
use PhpSpec\ObjectBehavior;

spec/Type/DatetimeTypeSpec.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 spec\Cubicl\StructureCheck\Type;
46

57
use Cubicl\StructureCheck\Type\DatetimeType;

spec/Type/EnumTypeSpec.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 spec\Cubicl\StructureCheck\Type;
46

57
use Cubicl\StructureCheck\Type\EnumType;

spec/Type/ExactValueTypeSpec.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 spec\Cubicl\StructureCheck\Type;
46

57
use Cubicl\StructureCheck\Type\ExactValueType;

0 commit comments

Comments
 (0)