Skip to content

Commit e109d90

Browse files
author
Alexander Miertsch
authored
Merge pull request #11 from netiul/feature/php8
Allow PHP 8
2 parents c9edcf7 + c9619e8 commit e109d90

33 files changed

+79
-36
lines changed

.travis.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
language: php
2+
3+
matrix:
4+
fast_finish: true
5+
include:
6+
- php: 7.4
7+
env:
8+
- DEPENDENCIES=""
9+
- EXECUTE_CS_CHECK=true
10+
- TEST_COVERAGE=true
11+
- php: 8.0
12+
env:
13+
- DEPENDENCIES=""
14+
- EXECUTE_CS_CHECK=true
15+
- TEST_COVERAGE=true
16+
17+
cache:
18+
directories:
19+
- $HOME/.composer/cache
20+
- $HOME/.php-cs-fixer
21+
- $HOME/.local
22+
23+
before_script:
24+
- mkdir -p "$HOME/.php-cs-fixer"
25+
- phpenv config-rm xdebug.ini
26+
- composer self-update
27+
- composer update --prefer-source $DEPENDENCIES
28+
29+
script:
30+
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit; fi
31+
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix src -v --diff --dry-run; fi
32+
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/docheader check examples/ src/ tests/; fi
33+
34+
after_success:
35+
- if [[ $TEST_COVERAGE == 'true' ]]; then php ./vendor/bin/php-coveralls -v; fi
36+
37+
notifications:
38+
webhooks:
39+
urls:
40+
- https://webhooks.gitter.im/e/61c75218816eebde4486
41+
on_success: change # options: [always|never|change] default: always
42+
on_failure: always # options: [always|never|change] default: always
43+
on_start: never # options: [always|never|change] default: always

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.4",
19+
"php": "^7.4 || ^8.0",
2020
"event-engine/php-data": "^2.0-dev",
2121
"event-engine/php-engine-utils": "^0.1",
2222
"event-engine/php-schema": "^0.1",
23-
"ramsey/uuid": "^3.6|^4.0"
23+
"ramsey/uuid": "^3.6 || ^4.0"
2424
},
2525
"require-dev": {
2626
"ext-json": "*",
2727
"justinrainbow/json-schema": "^5.2",
2828
"malukenho/docheader": "^0.1.4",
2929
"opis/json-schema": "^1.0",
30-
"phpunit/phpunit": "^7.0",
31-
"prooph/php-cs-fixer-config": "^0.3",
30+
"phpunit/phpunit": "^8.0 || ^9.0",
31+
"prooph/php-cs-fixer-config": "^0.4",
3232
"roave/security-advisories": "dev-master",
33-
"satooshi/php-coveralls": "^1.0"
33+
"php-coveralls/php-coveralls": "^2.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

src/AbstractJsonSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/AnnotatedType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Exception/JsonSchemaException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Exception/JsonValidationError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Exception/JustinRainbowJsonValidationError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Exception/OpisJsonValidationError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/JsonSchema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of event-engine/php-json-schema.
4-
* (c) 2018-2019 prooph software GmbH <[email protected]>
4+
* (c) 2018-2021 prooph software GmbH <[email protected]>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

0 commit comments

Comments
 (0)