Skip to content

Commit aadcfd7

Browse files
committed
Update PHP version support and move package to new space
1 parent 55740b3 commit aadcfd7

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ language: php
33

44
matrix:
55
include:
6-
- php: 5.6
7-
- php: 7.0
86
- php: 7.1
97
- php: 7.2
10-
- php: nightly
8+
- php: 7.3
119
allow_failures:
1210
- php: nightly
1311
fast_finish: true
@@ -18,5 +16,4 @@ install:
1816
- composer install
1917

2018
script:
21-
- vendor/bin/phpspec run --no-interaction
22-
- vendor/bin/phpunit tests
19+
- composer run check

composer.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
{
2-
"name": "1blankz7/php-structure-check",
3-
"description": "Structural check of arrays for PHP 5.6+",
2+
"name": "cubicl/php-structure-check",
3+
"description": "Structural check of arrays for PHP 7.1+",
44
"keywords": ["array", "structure", "types"],
5-
"homepage": "https://github.com/1blankz7/php-structure-check",
5+
"homepage": "https://github.com/cubicldev/php-structure-check",
66
"type": "library",
77
"license": "MIT",
88
"authors": [
99
{
1010
"name": "Christian Blank",
11-
"email": "mail@cblank.de",
12-
"homepage": "http://cblank.de"
11+
"email": "christian@cubicl.de",
12+
"homepage": "https://cubicl.de"
1313
}
1414
],
15+
"scripts": {
16+
"check": ["@analyze", "@tests", "@tests-spec"],
17+
"tests": "phpunit tests",
18+
"analyze": "phpstan analyse --level 0 src",
19+
"tests-spec": "phpspec run --no-interaction"
20+
},
1521
"require-dev": {
16-
"phpspec/phpspec": "^3.2",
17-
"phpunit/phpunit": "^5.6"
22+
"phpspec/phpspec": "^5.1.0",
23+
"phpunit/phpunit": "^7",
24+
"phpstan/phpstan": "^0.11.4"
1825
},
1926
"autoload": {
2027
"psr-4": {

src/Type/ExactValueType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class ExactValueType implements TypeInterface
1313
*/
1414
private static $errorMessage = 'The value %s is not the same value as %s.';
1515

16+
/** @var mixed */
17+
private $value;
18+
1619
/**
1720
* ExactValueType constructor.
1821
*

0 commit comments

Comments
 (0)