Skip to content

Commit e6c593d

Browse files
authored
Update paysera/lib-object-wrapper to support php 8.0 (#6)
* Add support for PHP 8.0 * Removed (temporary) paysera/lib-php-cs-fixer-config
1 parent 92da0ad commit e6c593d

File tree

5 files changed

+71
-42
lines changed

5 files changed

+71
-42
lines changed

.php_cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ matrix:
1313
- php: 7.1
1414
env: COMPOSER_ARGS=""
1515
- php: 7.2
16-
env: COMPOSER_ARGS="" WITH_CS="true"
16+
env: COMPOSER_ARGS=""
17+
- php: "8.0"
18+
env: COMPOSER_ARGS=""
1719

1820
- php: 7.0
1921
env: COMPOSER_ARGS="--prefer-lowest"
2022
- php: 7.1
2123
env: COMPOSER_ARGS="--prefer-lowest"
2224
- php: 7.2
2325
env: COMPOSER_ARGS="--prefer-lowest"
26+
- php: 8.0
27+
env: COMPOSER_ARGS="--prefer-lowest"
2428

2529
cache:
2630
directories:
@@ -35,4 +39,3 @@ before_script:
3539

3640
script:
3741
- vendor/bin/phpunit
38-
- if [[ "$WITH_CS" == "true" ]]; then vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection "${COMMIT_SCA_FILES[@]}"; fi

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Changelog
2+
3+
## 0.3.0
4+
5+
### Added
6+
- Support for php 8.0
7+
8+
### Removed
9+
- Removed (temporary) paysera/lib-php-cs-fixer-config
10+
11+
## 0.2.2
12+
13+
### Fixed
14+
- Saves originalData and introduces method `getOriginalData` to access it; Adds method `getDataAsArray` to get data in array form
15+
- remove clone
16+
- improve array handling in getObjectWrapperAsArray
17+
- improve array handling in getObjectWrapperAsArray once more
18+
19+
## 0.2.1
20+
21+
### Fixed
22+
- improve array handling in getObjectWrapperAsArray
23+
24+
## 0.2.0
25+
26+
### Added
27+
- Ability to access originally passed data
28+
29+
## 0.1.1
30+
31+
### Fixed
32+
- Fixed mistype for exception message
33+
34+
## 0.1.0
35+
36+
### Fixed
37+
- Fixes strange test case with PHP 7.0

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
}
88
},
99
"require": {
10-
"php": "^7.0"
10+
"php": "^7.0 || ^8.0"
1111
},
1212
"require-dev": {
13-
"phpunit/phpunit": "^6.0",
14-
"paysera/lib-php-cs-fixer-config": "^2.0.0",
15-
"friendsofphp/php-cs-fixer": "^2.2,<2.11.2"
13+
"phpunit/phpunit": "^6.0 || ^9.0"
1614
},
1715
"autoload-dev": {
1816
"psr-4": {

phpunit.xml.dist

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false"
12-
bootstrap="vendor/autoload.php">
13-
14-
<testsuites>
15-
<testsuite>
16-
<directory>./tests/</directory>
17-
</testsuite>
18-
</testsuites>
19-
20-
<filter>
21-
<whitelist>
22-
<directory>./</directory>
23-
<exclude>
24-
<directory>./tests</directory>
25-
<directory>./vendor</directory>
26-
</exclude>
27-
</whitelist>
28-
</filter>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
backupStaticAttributes="false"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
bootstrap="vendor/autoload.php"
13+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
14+
>
15+
<coverage>
16+
<include>
17+
<directory>./</directory>
18+
</include>
19+
<exclude>
20+
<directory>./tests</directory>
21+
<directory>./vendor</directory>
22+
</exclude>
23+
</coverage>
24+
<testsuites>
25+
<testsuite name="Project Test Suite">
26+
<directory>./tests/</directory>
27+
</testsuite>
28+
</testsuites>
2929
</phpunit>

0 commit comments

Comments
 (0)