Skip to content

Commit

Permalink
Merge pull request #9 from rizdaprasetya/improve-CI-test
Browse files Browse the repository at this point in the history
Replace deprecated array_key_exists on object of php7.4
  • Loading branch information
rizdaprasetya authored Dec 30, 2019
2 parents 71217bd + 53a43fd commit 6d3b1f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
language: php
php:
- 7.4
- 7.2
# - 7.0
# - 5.6
# - 5.5
# - 5.4
# - hhvm
- 7.0
- 5.6
# - 5.5 # PHP version too old
# - 5.4 # PHP version too old
# - hhvm # HHVM officially drop PHP support

before_script:
- composer install
2 changes: 1 addition & 1 deletion Midtrans/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct($input_source = "php://input")

public function __get($name)
{
if (array_key_exists($name, $this->response)) {
if (isset($this->response->$name)) {
return $this->response->$name;
}
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "midtrans/midtrans-php",
"description": "PHP Wrapper for Midtrans Payment API.",
"homepage": "https://midtrans.com",
"version": "2.0.1",
"version": "2.1.0",
"type": "library",
"license":"GPL-3.0",
"authors": [
Expand Down

0 comments on commit 6d3b1f9

Please sign in to comment.